30 lines
678 B
Nginx Configuration File
30 lines
678 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
server_name _;
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
|
|
charset utf-8;
|
|
gzip on;
|
|
gzip_types text/html text/css application/javascript application/manifest+json;
|
|
|
|
location = /manifest.webmanifest {
|
|
default_type application/manifest+json;
|
|
add_header Cache-Control "no-cache";
|
|
}
|
|
|
|
location = /sw.js {
|
|
add_header Cache-Control "no-cache";
|
|
add_header Service-Worker-Allowed "/";
|
|
}
|
|
|
|
location /icons/ {
|
|
add_header Cache-Control "public, max-age=604800";
|
|
}
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.html;
|
|
add_header Cache-Control "no-cache";
|
|
}
|
|
}
|