Files
ws4kp/nginx.conf
2026-09-21 11:14:33 -05:00

37 lines
824 B
Nginx Configuration File

server {
listen 8080;
server_name localhost;
include mime.types;
types {
text/javascript mjs;
}
root /usr/share/nginx/html;
add_header X-Weatherstar true always;
# compress text assets in transit, the JS bundles are most of a first load
# (html is always compressed once gzip is on)
gzip on;
gzip_vary on;
gzip_comp_level 6;
gzip_min_length 1024;
gzip_types application/javascript text/javascript text/css application/json image/svg+xml;
include /etc/nginx/includes/wsqs_redirect.conf;
location / {
index index.html index.htm;
try_files $uri $uri/ =404;
}
location /music/ {
autoindex on;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}