fix: /admin redirect loses port behind tunnel/proxy (absolute_redirect off, trailing slash in footer link)
This commit is contained in:
@@ -8,6 +8,10 @@ server {
|
||||
root /srv/releases/current;
|
||||
charset utf-8;
|
||||
error_page 404 /404.html; # Astro emits 404.html at the site root
|
||||
# Directory redirects (/admin -> /admin/) must stay relative: an absolute
|
||||
# redirect is built from listen port 80 and loses the real port whenever the
|
||||
# site is reached through a tunnel or a proxy on a non-default port.
|
||||
absolute_redirect off;
|
||||
|
||||
# Fingerprinted build assets (/_astro/<name>.<hash>.*) — immutable
|
||||
location /_astro/ {
|
||||
|
||||
Reference in New Issue
Block a user