19 lines
457 B
Nginx Configuration File
19 lines
457 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
|
|
add_header Access-Control-Allow-Origin *;
|
|
|
|
location ~* \.(js|mjs|css)$ {
|
|
add_header Cache-Control "no-cache, no-store, must-revalidate";
|
|
add_header Pragma "no-cache";
|
|
add_header Access-Control-Allow-Origin *;
|
|
expires 0;
|
|
default_type application/javascript;
|
|
}
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
} |