From 6f761ae956d0be54f8c2633607bc609f4d9be315 Mon Sep 17 00:00:00 2001 From: Daniel Nitsikopoulos Date: Wed, 15 Feb 2023 19:28:07 +1100 Subject: [PATCH] Fix nginx conf --- config/nginx.conf | 3 +++ 1 file changed, 3 insertions(+) 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) {