Skip to content
Open
Show file tree
Hide file tree
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
10 changes: 10 additions & 0 deletions apps/admin/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@ http {
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
add_header X-XSS-Protection "1; mode=block" always;

location = /god-mode/index.html {
root /usr/share/nginx/html;
add_header X-Frame-Options "DENY" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
add_header X-XSS-Protection "1; mode=block" always;
add_header Cache-Control "no-cache, must-revalidate" always;
try_files $uri =404;
}

location / {
root /usr/share/nginx/html;
index index.html index.htm;
Expand Down
16 changes: 14 additions & 2 deletions apps/web/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,23 @@ http {
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
add_header X-XSS-Protection "1; mode=block" always;

# index.html is not content-hashed like /assets/*, so it must never be
# cached long-term. Safari/iOS's aggressive heuristic caching can otherwise
# keep serving a stale shell indefinitely, even after a fix is deployed.
location = /index.html {
root /usr/share/nginx/html;
add_header X-Frame-Options "DENY" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
add_header X-XSS-Protection "1; mode=block" always;
add_header Cache-Control "no-cache, must-revalidate" always;
try_files $uri =404;
}

location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}
}
}

}