30 lines
543 B
Nginx Configuration File
30 lines
543 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
server_name _;
|
|
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
|
|
|
|
location /events {
|
|
proxy_pass http://planilla-api:4000;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Connection '';
|
|
chunked_transfer_encoding off;
|
|
proxy_buffering off;
|
|
proxy_cache off;
|
|
proxy_read_timeout 3600s;
|
|
proxy_send_timeout 3600s;
|
|
}
|
|
|
|
|
|
location /config.js {
|
|
add_header 'Access-Control-Allow-Origin' '*';
|
|
add_header 'Content-Type' 'application/javascript';
|
|
}
|
|
}
|