fix: /admin redirect loses port behind tunnel/proxy (absolute_redirect off, trailing slash in footer link)

This commit is contained in:
2026-07-28 19:24:34 +02:00
parent 99f5601456
commit c0d06f4a17
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -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/ {