Select Git revision

Armin Co authored
Replaced the bash scripts with python scripts. Python is more convinient and easier to read and write. Makes it more flexible to apply updates. Added Jitsi support into the cvh-olp scripts. The jitsi-auto-conifg repository is not longer needed.
config.py 879 B
import os
# General settings
DOMAIN = 'your-domain.org'
MAIL_ADDRESS = 'your-mail@address.com'
# Jitsi
use_jitsi = True
jitsi_subdomain = 'jitsi'
# NoVNC
use_NoVnc = False
# MumbleWeb
use_MumbleWeb = False
""" Setting up all envrionment variables """
BASE_COMPOSE_FILE = '-f docker-compose.base.yml '
docker_compose_files = BASE_COMPOSE_FILE
subdomains = ''
# SWAG
SWAG_COMPOSE_FILE = 'swag/docker-compose.yml'
docker_compose_files += ' -f ' + SWAG_COMPOSE_FILE + ' '
# Jitsi
if use_jitsi:
JITSI_DIR = 'jitsi-auto-config'
JITSI_COMPOSE_FILE = 'jitsi/docker-compose.yml'
docker_compose_files += ' -f ' + JITSI_COMPOSE_FILE + ' '
subdomains += jitsi_subdomain
if __name__ == '__main__':
SOURCE_FILE = 'local_source'
os.system('rm -f ' + SOURCE_FILE)
f = open(SOURCE_FILE, 'w')
f.write('DOCKER_COMPOSE_FILES="' + docker_compose_files + '"\n')