Backend integrated?
Some checks failed
Build and Deploy Nuxt / build (push) Failing after 2m1s

This commit is contained in:
2026-03-17 19:48:05 +01:00
parent 3e0cdf8cc4
commit 45404157b3
15 changed files with 1624 additions and 58 deletions

View File

@@ -5,6 +5,7 @@ http {
listen 80;
server_name _;
# Normal requests
location / {
proxy_pass http://frontend:3000;
@@ -14,5 +15,16 @@ http {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
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;
}
}
}