diff --git a/nginx/nginx.conf b/nginx/nginx.conf index bb254db7..284a959f 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -28,10 +28,16 @@ http { listen 80; listen 443 ssl; + underscores_in_headers on; + # GoTrue location /gotrue/ { rewrite ^/gotrue(/.*)$ $1 break; proxy_pass http://gotrue:9999; + + # Allow headers like redirect_to to be handed over to the gotrue + # for correct redirecting + proxy_pass_request_headers on; } # WebSocket