20 lines
443 B
Nginx Configuration File
20 lines
443 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
server_name _;
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
|
|
location = /config.js {
|
|
add_header Cache-Control "no-store, no-cache, must-revalidate";
|
|
expires off;
|
|
}
|
|
|
|
location ~* \.(?:js|css|svg|png|jpg|jpeg|gif|ico|woff2?)$ {
|
|
expires 7d;
|
|
add_header Cache-Control "public, max-age=604800";
|
|
}
|
|
}
|