|
|
|
|
342
|
echo ' }';
|
342
|
echo ' }';
|
343
|
echo '}'; } >> "$rocketchat_nginx_site"
|
343
|
echo '}'; } >> "$rocketchat_nginx_site"
|
344
|
|
344
|
|
|
|
345
|
+ # If content security is enabled then the https site won't load
|
|
|
346
|
+ sed -i 's|add_header Content-Security-Policy|#add_header Content-Security-Policy|g' "$rocketchat_nginx_site"
|
|
|
347
|
+
|
345
|
create_site_certificate "$ROCKETCHAT_DOMAIN_NAME" 'yes'
|
348
|
create_site_certificate "$ROCKETCHAT_DOMAIN_NAME" 'yes'
|
346
|
|
349
|
|
347
|
nginx_ensite "$ROCKETCHAT_DOMAIN_NAME"
|
350
|
nginx_ensite "$ROCKETCHAT_DOMAIN_NAME"
|