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 +}