Преглед на файлове

web: stop using the default config file

It should be empty and we set all settings. This will reduce the size fo
the file and make it less confusing to inspect on a running system.
Saúl Ibarra Corretgé преди 3 години
родител
ревизия
261577c
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 1
      web/rootfs/defaults/system-config.js
  2. 0 1
      web/rootfs/etc/cont-init.d/10-config

+ 2 - 1
web/rootfs/defaults/system-config.js

@@ -11,7 +11,8 @@
 {{ $XMPP_MUC_DOMAIN := .Env.XMPP_MUC_DOMAIN | default "muc.meet.jitsi" -}}
 {{ $XMPP_MUC_DOMAIN_PREFIX := (split "." $XMPP_MUC_DOMAIN)._0  -}}
 
-// Begin default config overrides.
+// Jitsi Meet configuration.
+var config = {};
 
 if (!config.hasOwnProperty('hosts')) config.hosts = {};
 

+ 0 - 1
web/rootfs/etc/cont-init.d/10-config

@@ -75,7 +75,6 @@ tpl /defaults/ssl.conf > /config/nginx/ssl.conf
 
 tpl /defaults/default > /config/nginx/site-confs/default
 
-cp /defaults/config.js /config/config.js
 tpl /defaults/system-config.js >> /config/config.js
 tpl /defaults/settings-config.js >> /config/config.js
 if [[ -f /config/custom-config.js ]]; then