diff --git a/.env.sample b/.env.sample index fcf2dbb..908262b 100644 --- a/.env.sample +++ b/.env.sample @@ -19,3 +19,6 @@ FEDWIKI_VOLUME="fedwiki" # Note(3wc): If you change this after initial deployment, you will need to # manually copy the new value from `conf/config.initial.json` SECRET_COOKIE_SECRET_VERSION=v1 # length=30 + +# Disable SSL encryption (not recommended) +#COMPOSE_FILE="$COMPOSE_FILE:compose.insecure.yml" diff --git a/compose.insecure.yml b/compose.insecure.yml new file mode 100644 index 0000000..727ee92 --- /dev/null +++ b/compose.insecure.yml @@ -0,0 +1,11 @@ +--- +version: "3.8" + +services: + app: + deploy: + labels: + - "traefik.http.services.${STACK_NAME}-non-tls.loadbalancer.server.port=3000" + - "traefik.http.routers.${STACK_NAME}-non-tls.rule=Host(`${DOMAIN}`) || HostRegexp(`{subdomain:\\w+}.${DOMAIN}`) || HostRegexp(`{subsubdomain:\\w+}.{subdomain:\\w+}.${DOMAIN}`)" + - "traefik.http.routers.${STACK_NAME}-non-tls.entrypoints=web" + - "caddy=https://${DOMAIN}, https://*.${DOMAIN}, https://*.*.${DOMAIN}, https://*.*.*.${DOMAIN}, http://${DOMAIN}, http://*.${DOMAIN}, http://*.*.${DOMAIN}, http://*.*.*.${DOMAIN}"