learning_curve
Golden Pleskian
We have searched in this Plesk Onyx section for the correct way to apply this through nginx, but can't find any specific details. Outside of this forum, there's plenty of reference material and nearly all the nginx formats used / recommended out there provide this as a simple, starting point:
which we ammeded to this non-active version, so that we can see all the issues as they happen:
Using either of these however (after adding them via Plesk Panel / Domain / Apache & nginx settings always provides the same error:
It's clearly, a simple typo by us somewhere, but we've tried many different permuations and even a different approach, by creating a new additional .conf file here: /etc/nginx/conf.d but that also produces the same error, so we're stuck
There's no detrimental affect on our server because the linked nginx test fails and reports everyting before we re-start nginx, which is nice.
We'd like to run this 'starting point' successfully before we experiment with the many additional suffix instructions as CSP is now at level 2 (Content Security Policy CSP Reference & Examples ). If anyone can see what we can't see or, suggest a different Plesk focused format, that would be great and well received.
Code:
add_header Content-Security-Policy "default-src 'self';”;
Code:
add_header Content-Security-Policy-Report-Only "default-src 'self';”;
Code:
...unexpected end of file, expecting ";" or "}" in /var/www/vhosts/system/[TEST-DOMAIN]/conf/vhost_nginx.conf:15
nginx: configuration file /etc/nginx/nginx.conf test failed
We'd like to run this 'starting point' successfully before we experiment with the many additional suffix instructions as CSP is now at level 2 (Content Security Policy CSP Reference & Examples ). If anyone can see what we can't see or, suggest a different Plesk focused format, that would be great and well received.