mirror of
http://nostr-git-proxy.forgejo.svc.cluster.local/git/45387ca441053e230b2126802005eb03767ab59d84555e8bac86b6e7def14e27/myadhd
synced 2026-09-23 20:23:10 +00:00
35 lines
1.1 KiB
Nginx Configuration File
35 lines
1.1 KiB
Nginx Configuration File
worker_processes 1;
|
|
error_log /dev/stderr warn;
|
|
pid /tmp/nginx.pid;
|
|
events { worker_connections 1024; }
|
|
http {
|
|
include /etc/nginx/mime.types;
|
|
default_type application/octet-stream;
|
|
access_log /dev/stdout;
|
|
sendfile on;
|
|
gzip on;
|
|
gzip_types text/plain text/css application/javascript application/json application/xml image/svg+xml;
|
|
gzip_min_length 1024;
|
|
server {
|
|
listen 80;
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
error_page 404 /404.html;
|
|
add_header X-Content-Type-Options nosniff always;
|
|
add_header Referrer-Policy strict-origin-when-cross-origin always;
|
|
# Service worker must not be cached
|
|
location = /sw.js {
|
|
expires -1;
|
|
add_header Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0" always;
|
|
add_header X-Content-Type-Options nosniff always;
|
|
}
|
|
location ~* \.(css|js|svg|png|jpg|ico|woff2?|json)$ {
|
|
expires 7d;
|
|
add_header Cache-Control "public";
|
|
}
|
|
location / {
|
|
try_files $uri $uri/ $uri/index.html =404;
|
|
add_header Cache-Control "no-cache" always;
|
|
}
|
|
}
|
|
}
|