nginx-proxy-manager icon indicating copy to clipboard operation
nginx-proxy-manager copied to clipboard

/.well-known/webfinger

Open casperghst42 opened this issue 3 years ago • 3 comments

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.

casperghst42 avatar Dec 27 '21 20:12 casperghst42

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;
}

paspo avatar Feb 28 '22 17:02 paspo

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.

casperghst42 avatar Mar 01 '22 07:03 casperghst42

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).

BeWog avatar Dec 10 '22 11:12 BeWog

Issue is now considered stale. If you want to keep it open, please comment :+1:

github-actions[bot] avatar Feb 28 '24 01:02 github-actions[bot]