Skip to content
Snippets Groups Projects
Commit 5a125456 authored by Bob Mottram's avatar Bob Mottram
Browse files

When ssl is enabled only allow https content within the site

parent a1de6ba0
No related branches found
No related tags found
No related merge requests found
......@@ -134,6 +134,7 @@ function nginx_ssl {
echo ' ssl_prefer_server_ciphers on;' >> $filename
echo " ssl_protocols $SSL_PROTOCOLS;" >> $filename
echo " ssl_ciphers '$SSL_CIPHERS';" >> $filename
echo " add_header Content-Security-Policy \"default-src https:; script-src https: 'unsafe-inline'; style-src https: 'unsafe-inline'\";" >> $filename
#nginx_stapling $1
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment