Select Git revision

Armin Co authored
config.sh 1.45 KiB
#!/bin/bash
# Get the path to all docker-compose files
# with the "-f" flag.
## YOUR SETTINGS
## Configure domains and letsencrypt
#
DOMAIN=armin-co.de
SUB_DOMAINS=""
MAIL=test@armin-co.de
USE_JITSI="true"
USE_NOVNC="true"
USE_MUMBLE="true"
# Git
GIT_URL="https://gitlab.cvh-server.de/aco/"
# Variable that holds all docker-compose files.
# This is the main compose file. Don not remove!
# Required for unified a unified path layout.
base_compose_file=" -f docker-compose.base.yml "
DOCKER_COMPOSE_FILES="$base_compose_file"
# Letsencrypt
letsencrypt_compose_file=" -f letsencrypt-webserver/docker-compose.yml "
DOCKER_COMPOSE_FILES+=$"$letsencrypt_compose_file"
LETSENCRYPT_DIR=letsencrypt-webserver
LETSENCRYPT_URL="$GIT_URL""$LETSENCRYPT_DIR".git
# Jitsi
JITSI_DIR=jitsi-auto-config
JITSI_URL="$GIT_URL$JITSI_DIR".git
if [ "$USE_JITSI" == "true" ]; then
jitsi_compose_file=" -f jitsi/docker-compose.yml "
DOCKER_COMPOSE_FILES+=$"$jitsi_compose_file"
SUB_DOMAINS+="jitsi,"
fi
# noVNC - Screen sharing with VNC
NOVNC_DIR=novnc
NOVNC_URL="$GIT_URL$NOVNC_DIR".git
if [ "$USE_NOVNC" == "true" ]; then
novnc_compose_file=" -f novnc/docker-compose.yml "
DOCKER_COMPOSE_FILES+="$novnc_compose_file"
fi
# Mumble
MUMBLE_DIR=build-mumble-web
MUMBLE_URL=https://github.com/Johni0702/mumble-web.git
if [ "$USE_MUMBLE" == "true" ]; then
mumble_compose_file=" -f build-mumble-web/docker-compose.production.yml"
DOCKER_COMPOSE_FILES+="$mumble_compose_file"
SUB_DOMAINS+="mumble-web"
fi