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>
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
// Schrijft de productie-CSP van de site naar stdout, zonder regeleinde. De
|
||||
// controle na deploy (deploy/verify-deployment.sh --cms) vergelijkt hiermee
|
||||
// de header van de CMS-host, zodat die niet van config/securityHeaders.ts
|
||||
// kan afwijken.
|
||||
|
||||
import { contentSecurityPolicy } from './securityHeaders.ts';
|
||||
|
||||
process.stdout.write(contentSecurityPolicy('production'));
|
||||
Reference in New Issue
Block a user