19 lines
464 B
Nginx Configuration File
19 lines
464 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
server_name _;
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
|
|
# Manifests and images change with each build: always revalidate
|
|
location /firmware/ {
|
|
add_header Cache-Control "no-cache";
|
|
types { application/json json; application/octet-stream bin; }
|
|
}
|
|
location /vendor/ {
|
|
add_header Cache-Control "public, max-age=604800";
|
|
}
|
|
location / {
|
|
try_files $uri $uri/ =404;
|
|
}
|
|
}
|