Files
Heritage/frontend/nginx.conf
T

19 lines
377 B
Nginx Configuration File

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
# SPA-роутинг
location / {
try_files $uri $uri/ /index.html;
}
# проксирование API на backend-контейнер
location /api/ {
proxy_pass http://backend:4000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}