blob: b392f6172d411039816ecf39ccfab8aa7a8942f8 [file] [log] [blame]
server {
listen 4000;
server_name localhost;
#charset koi8-r;
access_log /var/log/nginx/log/xos-spa-gui.access.log main;
error_log /var/log/nginx/log/xos-spa-gui.error.log debug;
location / {
root /var/www/dist;
index index.html index.htm;
}
# Redirect for FE config
location /spa/ {
rewrite ^/spa/(.*)$ /$1;
}
location /api {
resolver 127.0.0.1 valid=30s;
proxy_pass http://xos-ws:3000;
# proxy_redirect http://xos-ws:3000/spa /;
}
location /socket.io {
resolver 127.0.0.1 valid=30s;
proxy_pass http://xos-ws:3000;
# proxy_redirect http://xos-ws:3000/spa /;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}