Skip to content
Snippets Groups Projects
Select Git revision
  • 0fe814d5ee5421562d25c0d83a76c3de7d29fa87
  • master default protected
  • prod_dlrg
  • bugifx_configure_once
  • fix_path_chaos
  • feature_mumbleIntegration
6 results

config.py

Blame
  • Armin Co's avatar
    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.
    0fe814d5
    History
    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')