Skip to content
Open
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
6 changes: 6 additions & 0 deletions web/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ server {
root /usr/share/nginx/html;
index index.html index.htm;

# Caddy terminates TLS and proxies here over plain HTTP, so nginx must not
# guess scheme/port for its own directory-redirect (e.g. /blog -> /blog/):
# absolute_redirect would otherwise leak this container's internal
# http://host:3000 into the Location header sent to real visitors.
absolute_redirect off;

location / {
try_files $uri $uri/ /index.html;
}
Expand Down
Loading