Files
originsdigital/frontend/nginx.conf
Tetardtek 4a3be2a323
Some checks failed
CI/CD — Build & Deploy / Build (push) Failing after 1m47s
CI/CD — Build & Deploy / Deploy to VPS (push) Has been skipped
feat: initial project structure — Express/TS/TypeORM + React/TS + Docker + Gitea CI
2026-03-14 04:13:58 +01:00

23 lines
585 B
Nginx Configuration File

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
# React SPA — renvoie index.html pour toutes les routes frontend
location / {
try_files $uri $uri/ /index.html;
}
# Proxy /api vers le backend Express
location /api/ {
proxy_pass http://backend:4000;
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;
}
}