Fix api requests forwardding

This commit is contained in:
Laurent
2024-10-24 17:21:53 +01:00
parent fd46951661
commit 29ed897de5

View File

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