feat: allow headers to passed to gotrue for redirect_to

This commit is contained in:
Fu Zi Xiang 2023-11-22 12:45:49 +08:00
parent 7c200a9991
commit 61527f723b
No known key found for this signature in database
1 changed files with 6 additions and 0 deletions

View File

@ -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