🐛(nginx) fix / location to handle new static pages

The / location is not trying the $uri/index.html file. We should try
this instad of $uri/ because when a new static page is added, we always
have this pattern.
This commit is contained in:
Manuel Raynaud
2025-12-03 09:22:25 +01:00
parent 1e37007be9
commit 54fe70d662
2 changed files with 5 additions and 1 deletions

View File

@@ -11,6 +11,10 @@ and this project adheres to
- ♿(frontend) improve accessibility:
- ♿(frontend) add skip to content button for keyboard accessibility #1624
### Fixed
- 🐛(nginx) fix / location to handle new static pages
## [4.0.0] - 2025-12-01
### Added

View File

@@ -6,7 +6,7 @@ server {
root /usr/share/nginx/html;
location / {
try_files $uri index.html $uri/ =404;
try_files $uri index.html $uri/index.html =404;
add_header X-Frame-Options DENY always;
}