Pipeline test
Some checks failed
Build and Deploy Nuxt / build (push) Failing after 30s

This commit is contained in:
2026-10-01 21:34:56 +02:00
parent 13b659662e
commit 580a160300
6 changed files with 375 additions and 0 deletions

35
nginx.conf Normal file
View File

@@ -0,0 +1,35 @@
events {}
http {
server {
listen 80;
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;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
# Normal requests
location / {
proxy_pass http://frontend:3000;
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;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
}