diff --git a/config/nginx.conf b/config/nginx.conf index ecbdbd4..f830876 100644 --- a/config/nginx.conf +++ b/config/nginx.conf @@ -23,10 +23,13 @@ server { break; } + rewrite ^/\.well-known/(host-meta|webfinger).* https://fed.brid.gy$request_uri? redirect; + location / { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $host; + # If the file exists as a static file serve it directly without # running all the other rewrite tests on it if (-f $request_filename) {