The pipeline runs lint, format, tests, build, dependency audit and Lighthouse (mobile and desktop, Playwright Chromium on the arm64 runner) on every pull request, push to master and manual run. Pushes to master deploy to test automatically, and any branch can be deployed to test manually. Test is a Raspberry Pi with nginx next to the current WordPress site; the deploy refuses folders containing WordPress. Production deploys are manual and only from release/* branches, over FTP with TLS to the IIS webhost. The IIS web.config and both nginx configs are generated from the same security header list as the Vite servers, with a test that fails when the generated files drift. Adds .gitattributes for LF line endings and pins pnpm through packageManager. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
19 lines
706 B
Plaintext
19 lines
706 B
Plaintext
# Gegenereerd door web/config/serverConfig.ts (pnpm server-config). Niet handmatig aanpassen.
|
|
# Reverse proxy voor de testsite naar de hosting-Pi. certbot past dit bestand
|
|
# aan voor HTTPS; kopieer het daarna dus niet opnieuw zonder certbot opnieuw te
|
|
# draaien.
|
|
server {
|
|
listen 80;
|
|
server_name test.andreaslop.nl;
|
|
|
|
location / {
|
|
proxy_pass http://192.168.1.103;
|
|
# Verplicht: de hosting-Pi kiest op basis van de hostname tussen het
|
|
# testblok en WordPress
|
|
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;
|
|
}
|
|
}
|