Files
clip2md/nginx.conf
T

45 lines
1.1 KiB
Nginx Configuration File

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
gzip on;
gzip_types text/html text/css application/javascript application/json image/svg+xml;
gzip_min_length 512;
include /etc/nginx/security-headers.conf;
location = /healthz {
access_log off;
add_header Content-Type text/plain;
return 200 "ok\n";
}
location /vendor/ {
include /etc/nginx/security-headers.conf;
expires 30d;
add_header Cache-Control "public, immutable";
}
location = /sw.js {
include /etc/nginx/security-headers.conf;
add_header Cache-Control "no-cache";
}
location = /manifest.webmanifest {
include /etc/nginx/security-headers.conf;
default_type application/manifest+json;
add_header Cache-Control "no-cache";
}
location = /index.html {
include /etc/nginx/security-headers.conf;
add_header Cache-Control "no-cache";
}
location / {
try_files $uri $uri.html $uri/ /index.html;
}
}