DoTheEvo / selfhosted-apps-docker

Guide by Example
1.83k stars 129 forks source link

Nextcloud warning for webfinger and nodeinfo #22

Open noone-g opened 3 years ago

noone-g commented 3 years ago

I added the following lines to Caddyfile

redir /.well-known/webfinger /index.php/.well-known/webfinger 301
redir /.well-known/nodeinfo /index.php/.well-known/nodeinfo 301

'nginx.conf' needs to be written as suggested in Nextcloud manual.

    location ^~ /.well-known {
    # The rules in this block are an adaptation of the rules
    # in `.htaccess` that concern `/.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; }

    # Let Nextcloud's API for `/.well-known` URIs handle all other
    # requests by passing them to the front-end controller.
    return 301 /index.php$uri;
    }