diff --git a/docker/resume/nginx.conf b/docker/resume/nginx.conf index 251a572..99ce006 100644 --- a/docker/resume/nginx.conf +++ b/docker/resume/nginx.conf @@ -12,13 +12,13 @@ server { add_header Referrer-Policy "strict-origin-when-cross-origin" always; add_header Permissions-Policy "camera=(), microphone=(), geolocation=(), accelerometer=(), gyroscope=(), magnetometer=(), payment=(), usb=()" always; - # Set up CSP with adjusted sources and nonce + # Set up CSP with specific script URLs and nonce set $nonce $request_id; add_header Content-Security-Policy " default-src 'none'; - script-src 'self' 'nonce-$nonce' https://matomo.nixc.us; - style-src 'self' 'nonce-$nonce' https://colinknapp.com; - img-src 'self' https://matomo.nixc.us https://colinknapp.com; + script-src 'self' 'nonce-$nonce' https://matomo.nixc.us/js/tracker.js https://colinknapp.com/scripts/some-script.js; + style-src 'self' 'nonce-$nonce' https://colinknapp.com/styles/main.css; + img-src 'self' https://matomo.nixc.us/images/ https://colinknapp.com/icons/; connect-src 'self' https://matomo.nixc.us; frame-ancestors 'self'; base-uri 'self';