Files
AndreaSlopFotografie/web/deploy/nginx/test.andreaslop.nl.proxy.conf
SluijsensandClaude Sonnet 5.5 41a6e7be5a Prepares the test site for the CMS host
The test route on the proxy Pi now points at the CMS host on port 5200.
verify-deployment.sh gets a --cms mode that checks the exact security
headers, caching, gzip only, a percent-encoded redirect, the 405 for
POST, and the CMS routes. The deploy-test job uses it once the Gitea
variable ASF_TEST_SERVED_BY_CMS is true.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 02:05:59 +01:00

20 lines
843 B
Plaintext

# Gegenereerd door web/config/serverConfig.ts (pnpm server-config). Niet handmatig aanpassen.
# Reverse proxy voor de testsite naar de CMS-host op de hosting-Pi. certbot
# past dit bestand aan voor HTTPS; kopieer het daarna dus niet opnieuw zonder
# certbot opnieuw te draaien. Terugvallen op nginx van de hosting-Pi: haal
# :5200 weg achter proxy_pass.
server {
listen 80;
server_name test.andreaslop.nl;
location / {
proxy_pass http://192.168.1.103:5200;
# De CMS-host gebruikt Host niet om een site te kiezen, maar de
# terugvaloptie (nginx op de hosting-Pi) wel: daarom blijft hij staan
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
}
}