Nextcloud 21 nodeinfo and webfinger

This is what i have in my nginx config:

    # The following 2 rules are only needed for the user_webfinger app.
    # Uncomment it if you're planning to use this app.
    rewrite ^/.well-known/host-meta /public.php?service=host-meta last;
    rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json last;

    # The following rule is only needed for the Social app.
    # Uncomment it if you're planning to use this app.
    rewrite ^/.well-known/webfinger /public.php?service=webfinger last;

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

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

    location ^~ /.well-known {
      return 301 /index.php$uri;
    }

i added:

location ^~ /.well-known {
          return 301 /index.php$uri;
        }

and

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

that fixes it for me

2 Likes