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

26 lines
452 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;
}
}