nginx-proxy-manager
nginx-proxy-manager copied to clipboard
/.well-known/webfinger
Hi,
I'm trying to migrate away from swagger to nginx-proxy-manager, which primarily is hosting an nextcloud.
In my swagger I had:
location = /.well-known/webfinger {
return 301 $scheme://$host:$server_port/index.php/.well-known/webfinger;
}
location = /.well-known/nodeinfo {
return 301 $scheme://$host:$server_port/index.php/.well-known/nodeinfo;
}
location = /.well-known/carddav {
return 301 $scheme://$host:$server_port/remote.php/dav;
}
location = /.well-known/caldav {
return 301 $scheme://$host:$server_port/remote.php/dav;
}
To fix a security issue (reported by nextcloud).
I have added the same both with typed out path (https://server.example.com:443) and as it is above.
I've added the code to the advanced section of the proxy server, but only carddav and caldav is recognized not the webfinger nor nodeinfo.
Looking in the proxy configuration file it is as it used to be with swagger - any idea why this is not working ?
Thanks.
Hi! I just came across this issue and this is how I solved it. As per this page, I put this into the advanced section of the proxy host:
location ^~ /.well-known {
location = /.well-known/carddav { return 301 /remote.php/dav/; }
location = /.well-known/caldav { return 301 /remote.php/dav/; }
location /.well-known/acme-challenge { try_files $uri $uri/ =404; }
location /.well-known/pki-validation { try_files $uri $uri/ =404; }
return 301 /index.php$request_uri;
}
Hi! I just came across this issue and this is how I solved it. As per this page, I put this into the advanced section of the proxy host:
Thank you, but in the mean time I changed to caddy.
I have the same problem since many version of Nextcloud. Currently, Nextcloud 25.0.2.
I check this configuration : https://docs.nextcloud.com/server/latest/admin_manual/installation/nginx.html I don't know how to resolve it.
In french:
Votre serveur web n'est pas configuré correctement pour résoudre "/.well-known/webfinger". Plus d'informations peuvent être trouvées sur notre [documentation](https://nextcloud.toto.com/settings/admin/%7BdocLink%7D).
Votre serveur web n'est pas configuré correctement pour résoudre "/.well-known/nodeinfo". Plus d'informations peuvent être trouvées sur notre [documentation](https://nextcloud.toto.com/settings/admin/%7BdocLink%7D).
Issue is now considered stale. If you want to keep it open, please comment :+1: