desktop-environment/docker/scripts/traefik.sh
Jackson Delahunt f0c5659bf8 readlink
2019-02-27 11:28:04 +11:00

27 lines
808 B
Bash
Executable file

REPO_ROOT=$(dirname $(readlink -f $0))/../..
# Export desktop environment shell configuration
export $($REPO_ROOT/docker/scripts/environment.sh)
# Start traefik to expose the xpra web client publicly
docker exec \
--detach \
--tty \
$DESKTOP_ENVIRONMENT_CONTAINER \
traefik \
--acme.domains=*.stemn.com \
--acme.email=security@stemn.com \
--acme.entrypoint=https \
--acme.httpchallenge \
--acme.httpchallenge.entrypoint=http \
--acme.storage=/etc/traefik/acme.json \
--acme=true \
--defaultentrypoints=http,https \
--docker \
--docker.endpoint=unix:///var/run/docker.sock \
--docker.exposedbydefault=false \
--docker.watch=true \
--entryPoints='Name:http Address::80 Redirect.EntryPoint:https' \
--entryPoints='Name:https Address::443 TLS' \
--logLevel=info \
--web