test
All checks were successful
Build and Deploy Nuxt / build (push) Successful in 12s

This commit is contained in:
2026-03-17 22:29:04 +01:00
parent 94f6601740
commit 95d095cbe4

View File

@@ -5,6 +5,17 @@ http {
listen 80; listen 80;
server_name _; server_name _;
# Api Requests
location /api/ {
proxy_pass http://backend:5000;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
# Normal requests # Normal requests
location / { location / {
proxy_pass http://frontend:3000; proxy_pass http://frontend:3000;
@@ -16,15 +27,6 @@ http {
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;
} }
# Api Requests
location /api/ {
proxy_pass http://backend:5000;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
} }
} }