Skip to content

Commit

Permalink
fix: serve index.html for unknown paths
Browse files Browse the repository at this point in the history
This should ensure that the new html5 urls work correctly.
  • Loading branch information
macite committed Jan 28, 2025
1 parent 06bfa71 commit d07ad26
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ http {
add_header Content-Security-Policy "default-src https: 'unsafe-inline' 'unsafe-eval' blob: data: ws:" always;
# add_header Feature-Policy "microphone=(self),speaker=(self),fullscreen=(self),payment=(none);" always;
add_header Permissions-Policy "microphone=(self),speaker=(self),fullscreen=(self),payment=(none)" always;

location / {
try_files $uri index.html;
}
}

gzip on;
Expand Down

0 comments on commit d07ad26

Please sign in to comment.