Files
virtual-dsm/web/conf/nginx.conf
T

55 lines
1.2 KiB
Nginx Configuration File

server {
listen 5000 default_server;
autoindex on;
tcp_nodelay on;
server_tokens off;
absolute_redirect off;
error_log /dev/null;
access_log /dev/null;
auth_basic off;
auth_basic_user_file /etc/nginx/.htpasswd;
include /etc/nginx/mime.types;
gzip on;
gzip_vary on;
gzip_proxied any;
gzip_comp_level 5;
gzip_min_length 500;
gzip_disable "msie6";
gzip_types text/css text/javascript text/xml text/plain text/x-component application/javascript application/json application/xml application/rss+xml font/truetype font/opentype application/vnd.ms-fontobject image/svg+xml;
set $cache_control "no-cache";
if ($request_uri ~ "^/(?:msg\.html)?(?:\?.*)?$") {
set $cache_control "no-store";
}
add_header Cache-Control $cache_control always;
location / {
root /run/shm;
index index.html;
}
location /status {
proxy_http_version 1.1;
proxy_set_header Connection 'upgrade';
proxy_set_header Upgrade $http_upgrade;
proxy_buffering off;
proxy_read_timeout 3600s;
proxy_send_timeout 3600s;
proxy_pass http://unix:/run/shm/status-ws.sock:/;
}
}