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

Feature configure lets encrypt

parent f11b2458
Branches
No related tags found
No related merge requests found
build-mumble-web
jitsi-auto-config
letsencrypt-webserver
novnc
\ No newline at end of file
......@@ -12,16 +12,16 @@
docker_compose_files=""
# noVNC
docker_compose_files+=" -f ./novnc/docker-compose.yml "
# docker_compose_files+=" -f ./novnc/docker-compose.yml "
# letsencrypt
docker_compose_files+=" -f ./letsencrypt-webserver/docker-compose.yml "
# jitsi
docker_compose_files+=" -f ./jitsi-auto-config/jitsi/docker-compose.yml "
# docker_compose_files+=" -f ./jitsi-auto-config/jitsi/docker-compose.yml "
# mumble
docker_compose_files+=" -f ./build-mumble-web/docker-compose.yml"
# docker_compose_files+=" -f ./build-mumble-web/docker-compose.yml"
# "return" the string
......
......@@ -19,7 +19,7 @@ jitsi_url="$git_url$jitsi_dir".git
## letsencrypt
#
le_dir=letsencrypt_webserver
le_dir=letsencrypt-webserver
le_url="$git_url$le_dir".git
## noVNC
......@@ -45,10 +45,32 @@ function clone_repositories() {
git clone $novnc_url
}
## Configure domains and letsencrypt
#
domain=armin-co.de
sub_domains=jitsi,mumble,mumble-web
mail=your-webmaster-mail@somwhere.org
function configure_letsencrypt() {
echo ""
echo "Setting your letsencrypt domain settings."
echo ""
le_compose=$le_dir/docker-compose.yml
sed -i "s/your-domain.com/$domain/" $le_compose
sed -i "s/your_subdomains/$sub_domains/" $le_compose
sed -i "s/your_email/$mail/" $le_compose
# to use not only subdomains disable next line
# sed -i "s/- ONLY_SUBDOMAINS=true/- ONLY_SUBDOMAINS=false/" $le_dir
}
## Run configuration
#
echo ""
echo "Starting configuration with cleaning up and pulling again."
echo ""
remove_all
clone_repositories
# configure letsencrypt
configure_letsencrypt
\ No newline at end of file
File mode changed from 100644 to 100755
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment