From 61527f723bf555a1dfb23fb73ba3cb0d9d058f9d Mon Sep 17 00:00:00 2001 From: Fu Zi Xiang Date: Wed, 22 Nov 2023 12:45:49 +0800 Subject: [PATCH] feat: allow headers to passed to gotrue for redirect_to --- nginx/nginx.conf | 6 ++++++ 1 file changed, 6 insertions(+) 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