Disable https content security for rocket chat

Otherwise it won't load
This commit is contained in:
Bob Mottram 2018-05-16 14:46:37 +01:00
parent eead93e78e
commit 71cc89c713
1 changed files with 3 additions and 0 deletions

View File

@ -342,6 +342,9 @@ function install_rocketchat {
echo ' }';
echo '}'; } >> "$rocketchat_nginx_site"
# If content security is enabled then the https site won't load
sed -i 's|add_header Content-Security-Policy|#add_header Content-Security-Policy|g' "$rocketchat_nginx_site"
create_site_certificate "$ROCKETCHAT_DOMAIN_NAME" 'yes'
nginx_ensite "$ROCKETCHAT_DOMAIN_NAME"