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

Added etherpad option to config

parent de859e6c
Branches
No related tags found
No related merge requests found
...@@ -8,11 +8,8 @@ MAIL_ADDRESS = 'your-mail@address.com' ...@@ -8,11 +8,8 @@ MAIL_ADDRESS = 'your-mail@address.com'
use_jitsi = True use_jitsi = True
jitsi_subdomain = 'jitsi' jitsi_subdomain = 'jitsi'
# NoVNC # Etherpad
use_NoVnc = False use_etherpad = True
# MumbleWeb
use_MumbleWeb = False
""" Setting up all envrionment variables """ """ Setting up all envrionment variables """
BASE_COMPOSE_FILE = '-f docker-compose.base.yml ' BASE_COMPOSE_FILE = '-f docker-compose.base.yml '
...@@ -30,6 +27,11 @@ if use_jitsi: ...@@ -30,6 +27,11 @@ if use_jitsi:
docker_compose_files += ' -f ' + JITSI_COMPOSE_FILE + ' ' docker_compose_files += ' -f ' + JITSI_COMPOSE_FILE + ' '
subdomains += jitsi_subdomain 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__': if __name__ == '__main__':
SOURCE_FILE = 'local_source' SOURCE_FILE = 'local_source'
os.system('rm -f ' + SOURCE_FILE) 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(): ...@@ -31,7 +31,7 @@ def setup_jitsi():
rc = subprocess.call('./jitsi/gen-passwords.sh .', shell=True) rc = subprocess.call('./jitsi/gen-passwords.sh .', shell=True)
os.system('rm -f .env') os.system('rm -f .env')
os.system('sudo rm -rf ~/.jitsi-meet-cfg') 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') f = open('jitsi/.env', 'rt')
data = f.read() data = f.read()
...@@ -54,8 +54,17 @@ def setup_jitsi(): ...@@ -54,8 +54,17 @@ 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')
data = f.read()
f.close()
data.replace('#ETHERPAD_URL_BASE=http://etherpad.meet.jitsi:9001', 'ETHERPAD_URL_BASE=http://etherpad:9001')
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