37 lines
954 B
Nginx Configuration File
37 lines
954 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
|
|
add_header Access-Control-Allow-Origin *;
|
|
|
|
location = /v2 {
|
|
rewrite ^ /v2.html last;
|
|
}
|
|
|
|
location = /v2.html {
|
|
add_header Cache-Control "no-cache, no-store, must-revalidate";
|
|
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 /src/ {
|
|
add_header Cache-Control "no-cache, no-store, must-revalidate";
|
|
add_header Pragma "no-cache";
|
|
add_header Access-Control-Allow-Origin *;
|
|
add_header Content-Type "application/javascript; charset=utf-8";
|
|
expires 0;
|
|
}
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
}
|