remove nginx

This commit is contained in:
2026-04-10 00:25:43 +02:00
parent 9223e4d35f
commit b4fff4ebc0
15 changed files with 240 additions and 107 deletions
+35
View File
@@ -0,0 +1,35 @@
events {
worker_connections 1024;
}
http {
upstream backend {
server backend:3001;
}
upstream frontend {
server frontend:80;
}
server {
listen 80;
server_name _;
client_max_body_size 60M;
location /api/ {
proxy_pass http://backend; # ❗ PAS de :3001 ici
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;
}
location / {
proxy_pass http://frontend;
proxy_set_header Host $host;
}
}
}