When ssl is enabled only allow https content within the site
This commit is contained in:
parent
a1de6ba0c8
commit
5a12545657
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue