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

Added etherpad option to config

parent de859e6c
No related branches found
No related tags found
No related merge requests found
......@@ -8,11 +8,8 @@ MAIL_ADDRESS = 'your-mail@address.com'
use_jitsi = True
jitsi_subdomain = 'jitsi'
# NoVNC
use_NoVnc = False
# MumbleWeb
use_MumbleWeb = False
# Etherpad
use_etherpad = True
""" Setting up all envrionment variables """
BASE_COMPOSE_FILE = '-f docker-compose.base.yml '
......@@ -30,6 +27,11 @@ if use_jitsi:
docker_compose_files += ' -f ' + JITSI_COMPOSE_FILE + ' '
subdomains += jitsi_subdomain
if use_etherpad and use_jitsi:
ETHERPAD_COMPOSE_FILE = 'etherpad/docker-compose.yml'
docker_compose_files += ' -f ' + ETHERPAD_COMPOSE_FILE + ' '
if __name__ == '__main__':
SOURCE_FILE = 'local_source'
os.system('rm -f ' + SOURCE_FILE)
......
version: '3.4'
services:
etherpad:
container_name: etherpad
image: etherpad/etherpad
environment:
- PUID=1000
- GUID=1000
- TZ=Europe/Berlin
ports:
- 9001:9001
restart: unless-stopped
networks:
- reverse_proxy
......@@ -31,7 +31,7 @@ def setup_jitsi():
rc = subprocess.call('./jitsi/gen-passwords.sh .', shell=True)
os.system('rm -f .env')
os.system('sudo rm -rf ~/.jitsi-meet-cfg')
os.system('mkdir -p ~/.jitsi-meet-cfg/{web/letsencrypt,transcripts,prosody,jicofo,jvb,jigasi,jibri}')
os.system('mkdir -p ~/.jitsi-meet-cfg/{web,letsencrypt,transcripts,prosody,jicofo,jvb,jigasi,jibri}')
f = open('jitsi/.env', 'rt')
data = f.read()
......@@ -54,8 +54,17 @@ def setup_jitsi():
f.close()
os.system('cp jitsi-auto-config/jitsi.subdomain.conf reverse_proxy/nginx/proxy-confs/'+ jitsi_subdomain + '.subdomain.conf')
def setup_etherpad():
f = open('.env')
data = f.read()
f.close()
data.replace('#ETHERPAD_URL_BASE=http://etherpad.meet.jitsi:9001', 'ETHERPAD_URL_BASE=http://etherpad:9001')
if __name__ == '__main__':
configure_swag()
if use_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