Browse Source

fix: Fix Relay usage for users of ALLOWED_HOSTS (#17900)

Forward the Host header so ALLOWED_HOSTS actually works (and does not
require the user to add "sentry" explicitly)

This still requires the user to add `host.docker.internal` explicitly,
which we can unlikely fix.
Markus Unterwaditzer 5 years ago
parent
commit
8e271574ec
1 changed files with 2 additions and 0 deletions
  1. 2 0
      config/reverse_proxy/nginx.conf

+ 2 - 0
config/reverse_proxy/nginx.conf

@@ -63,5 +63,7 @@ http {
         location / {
            proxy_pass http://sentry;
         }
+
+        proxy_set_header Host $host;
     }
 }