Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions rootfs/etc/nginx/conf.d/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,19 @@ server {
log_not_found off;
}

try_files $uri $uri/ /index.html;

location / {
try_files $uri $uri/ @fallback;
}

location @fallback {
add_header Cache-Control "no-cache, no-store, must-revalidate" always;
rewrite ^.*$ /index.html last;
}

location ~* \.html$ {
add_header Cache-Control "no-cache, no-store, must-revalidate" always;
}

set $auth_basic off;
if (-f /auth/.htpasswd) {
set $auth_basic "Restricted Content";
Expand Down
Loading