(Fixed) Nextcloud Plugin webfinger and nodeinfo warning

omid_1985

Dabbler
Joined
Aug 22, 2018
Messages
10
If you have webfinger and nodeinfo warning after upgrading your TrueNAS Nextcloud plugin to version 21 or 22, here is the fix:

Inside your Nextcloud jail:
Add webfinger and nodeinfo locations into /usr/local/etc/nginx/conf.d/nextcloud.conf :

Code:
    location ^~ /.well-known {

        # The following 6 rules are borrowed from `.htaccess`



        rewrite ^/\.well-known/host-meta\.json  /public.php?service=host-meta-json  last;

        rewrite ^/\.well-known/host-meta        /public.php?service=host-meta       last;

        rewrite ^/\.well-known/webfinger        /public.php?service=webfinger       last;

        rewrite ^/\.well-known/nodeinfo         /public.php?service=nodeinfo        last;



        location = /.well-known/carddav     { return 301 /remote.php/dav/; }

        location = /.well-known/caldav      { return 301 /remote.php/dav/; }

        location = /.well-known/webfinger   { return 301 //index.php/.well-known/webfinger; }

        location = /.well-known/nodeinfo    { return 301 //index.php/.well-known/nodeinfo; }



        try_files $uri $uri/ =404;

    }



Restart your jail and test with a cleaned cache browser.
Source.
 
Last edited:
Top