dagent_eval/nginx.conf

20 lines
365 B
Nginx Configuration File

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
# SPA fallback
location / {
try_files $uri $uri/ /index.html;
}
# Proxy API to backend
location /api/ {
proxy_pass http://server:8003;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}