Kopie van https://gitlab.com/studieverenigingvia/ict/centurion met een paar aanpassingen
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
centurion/frontend/nginx.conf

29 lines
586 B

upstream api_upstream {
keepalive 30;
server backend:3001;
}
server {
listen 80;
server_name _;
root /usr/share/nginx/html;
location / {
try_files $uri @index;
}
location @index {
add_header Cache-Control no-cache;
expires 0;
try_files /index.html =404;
index index.html index.htm;
}
location /socket.io {
proxy_pass http://api_upstream;
proxy_pass_request_headers on;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}