Skip to content

Commit 7a8e2f8

Browse files
committed
Checking production config for API
1 parent 0c302ed commit 7a8e2f8

1 file changed

Lines changed: 0 additions & 24 deletions

File tree

apps/proxy/prod.Caddyfile

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,4 @@
11
:8080 {
2-
# Strict Content Security Policy for production
3-
header {
4-
# Remove server identification headers
5-
-Server
6-
-X-Powered-By
7-
8-
# Security headers
9-
X-Frame-Options "DENY"
10-
X-Content-Type-Options "nosniff"
11-
Referrer-Policy "strict-origin-when-cross-origin"
12-
X-XSS-Protection "1; mode=block"
13-
Permissions-Policy "camera=(), microphone=(), geolocation=(), payment=(), usb=(), magnetometer=(), gyroscope=(), accelerometer=()"
14-
15-
# Strict Transport Security (HSTS) - enable if using HTTPS
16-
# Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
17-
18-
# Production CSP
19-
# Using hash for inline script instead of 'unsafe-inline'
20-
Content-Security-Policy "default-src 'self'; script-src 'self' 'wasm-unsafe-eval' 'sha256-HlD9D/WlEaVKKAvDnldsXkj/nllO8aCRBvtofUTEnGQ='; style-src 'self' 'unsafe-inline'; img-src 'self' data: https:; font-src 'self' data:; connect-src 'self' wss://*.zxcoder.org https://*.zxcoder.org; worker-src 'self' blob:; child-src 'self' blob:; frame-src 'none'; object-src 'none'; base-uri 'self'; form-action 'self'; upgrade-insecure-requests; block-all-mixed-content"
21-
22-
# CSP Report endpoint (optional - set up monitoring)
23-
# Report-To "{\"group\":\"csp-endpoint\",\"max_age\":10886400,\"endpoints\":[{\"url\":\"https://your-report-collector.example.com/csp-reports\"}]}"
24-
}
25-
262
redir /auth /auth/
273
handle /auth/* {
284
uri strip_prefix /auth

0 commit comments

Comments
 (0)