projet-bouton-rouge/frontend/nginx.conf

16 lines
271 B
Nginx Configuration File
Raw Permalink Normal View History

2026-10-23 10:21:51 +00:00
server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
location /api/ {
proxy_pass http://backend:3000/;
proxy_set_header Host $host;
}
location / {
try_files $uri $uri/ /index.html;
}
}