forked from colin/resume
Update docker/resume/nginx.conf
This commit is contained in:
parent
0a3fcede7e
commit
d9c52597b0
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue