From 29ed897de5fdce02c3110823b9df8a88dea4838c Mon Sep 17 00:00:00 2001 From: Laurent <58115082+naaturel@users.noreply.github.com> Date: Thu, 24 Oct 2024 17:21:53 +0100 Subject: [PATCH] Fix api requests forwardding --- nginx/unluckiest_443 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nginx/unluckiest_443 b/nginx/unluckiest_443 index c87bccc..3050a13 100644 --- a/nginx/unluckiest_443 +++ b/nginx/unluckiest_443 @@ -15,7 +15,7 @@ server { listen 80; server_name unluckiest.naaturel.be www.unluckiest.naaturel.be; - return 301 https://$host$request_uri; + return 307 https://$host$request_uri; } server { @@ -38,14 +38,14 @@ server { location /api/ { if ($request_uri ~ ^(.+)/$) { - return 301 $1; + return 307 $1; } - proxy_pass http://api:5000/api/; + proxy_pass http://api:5000/; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection 'upgrade'; proxy_set_header Host $host; proxy_cache_bypass $http_upgrade; } -} \ No newline at end of file +}