docs: fix nginx proxy Host header to blog.giersig.eu

Internal requests arrive with Host: 10.100.0.10 which Indiekit doesn't
recognize, causing auth redirects. Hardcode the public hostname so
Indiekit's session/token handling works correctly.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Sven
2026-03-17 16:34:45 +01:00
parent e98c704e78
commit 421a2944f8

View File

@@ -225,10 +225,10 @@ server {
listen 10.100.0.10:80;
server_name blog.giersig.eu;
# Pretend we're HTTPS so Indiekit's force-https middleware
# doesn't redirect internal requests.
# Tell Indiekit this is the real domain (not 10.100.0.10) and
# that TLS was terminated upstream so force-https doesn't redirect.
proxy_set_header Host blog.giersig.eu;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;