浏览代码

Disable https content security for rocket chat

Otherwise it won't load
Bob Mottram 6 年前
父节点
当前提交
71cc89c713
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3
    0
      src/freedombone-app-rocketchat

+ 3
- 0
src/freedombone-app-rocketchat 查看文件

@@ -342,6 +342,9 @@ function install_rocketchat {
342 342
       echo '  }';
343 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 348
     create_site_certificate "$ROCKETCHAT_DOMAIN_NAME" 'yes'
346 349
 
347 350
     nginx_ensite "$ROCKETCHAT_DOMAIN_NAME"