瀏覽代碼

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
       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"