Skip to content
Snippets Groups Projects
Commit 5d25c673 authored by Armin's avatar Armin
Browse files

Changed etherpad setup method

parent 5d876a9f
Branches
Tags
No related merge requests found
...@@ -37,6 +37,8 @@ def setup_jitsi(): ...@@ -37,6 +37,8 @@ def setup_jitsi():
data = f.read() data = f.read()
f.close() f.close()
data = data.replace('#PUBLIC_URL=https://meet.example.com:8443', 'PUBLIC_URL=https://' + jitsi_subdomain + '.' + DOMAIN) data = data.replace('#PUBLIC_URL=https://meet.example.com:8443', 'PUBLIC_URL=https://' + jitsi_subdomain + '.' + DOMAIN)
if use_etherpad:
data = data.replace('#ETHERPAD_URL_BASE=http://etherpad.meet.jitsi:9001', 'ETHERPAD_URL_BASE=http://etherpad:9001')
f = open('.env', 'w') f = open('.env', 'w')
f.write(data) f.write(data)
...@@ -54,20 +56,9 @@ def setup_jitsi(): ...@@ -54,20 +56,9 @@ def setup_jitsi():
f.close() f.close()
os.system('cp jitsi-auto-config/jitsi.subdomain.conf reverse_proxy/nginx/proxy-confs/'+ jitsi_subdomain + '.subdomain.conf') os.system('cp jitsi-auto-config/jitsi.subdomain.conf reverse_proxy/nginx/proxy-confs/'+ jitsi_subdomain + '.subdomain.conf')
def setup_etherpad():
f = open('.env', 'rt')
data = f.read()
f.close()
data.replace('#ETHERPAD_URL_BASE=http://etherpad.meet.jitsi:9001', 'ETHERPAD_URL_BASE=http://etherpad:9001')
f = open('.env', 'w')
f.write(data)
f.close()
if __name__ == '__main__': if __name__ == '__main__':
configure_swag() configure_swag()
if use_jitsi: if use_jitsi:
setup_jitsi() setup_jitsi()
if use_etherpad:
setup_etherpad()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment