LetsEncrypt fixes
- Changed virtual host weight for the letsencrypt docker so that it is higher than any other weight - Copy the renewal script to the server (previously it was available to the host at /data/git/blender-cloud/…, but no longer.
This commit is contained in:
@@ -48,7 +48,9 @@ read dummy
|
|||||||
echo "==================================================================="
|
echo "==================================================================="
|
||||||
echo "Bringing remote Docker up to date…"
|
echo "Bringing remote Docker up to date…"
|
||||||
$SSH mkdir -p $REMOTE_DOCKER_COMPOSE_DIR
|
$SSH mkdir -p $REMOTE_DOCKER_COMPOSE_DIR
|
||||||
$SCP $DOCKER_DEPLOYDIR/$PROJECT_NAME/docker/docker-compose.yml $DEPLOYHOST:$REMOTE_DOCKER_COMPOSE_DIR
|
$SCP \
|
||||||
|
$DOCKER_DEPLOYDIR/$PROJECT_NAME/docker/{docker-compose.yml,renew-letsencrypt.sh} \
|
||||||
|
$DEPLOYHOST:$REMOTE_DOCKER_COMPOSE_DIR
|
||||||
$SSH -T <<EOT
|
$SSH -T <<EOT
|
||||||
set -e
|
set -e
|
||||||
cd $REMOTE_DOCKER_COMPOSE_DIR
|
cd $REMOTE_DOCKER_COMPOSE_DIR
|
||||||
|
@@ -164,7 +164,7 @@ services:
|
|||||||
WEBROOT: /data/letsencrypt
|
WEBROOT: /data/letsencrypt
|
||||||
LISTEN: '[::]:80'
|
LISTEN: '[::]:80'
|
||||||
VIRTUAL_HOST: http://cloud.blender.org/.well-known/*, http://stats.cloud.blender.org/.well-known/*
|
VIRTUAL_HOST: http://cloud.blender.org/.well-known/*, http://stats.cloud.blender.org/.well-known/*
|
||||||
VIRTUAL_HOST_WEIGHT: 20
|
VIRTUAL_HOST_WEIGHT: 30
|
||||||
volumes:
|
volumes:
|
||||||
- /data/letsencrypt:/data/letsencrypt
|
- /data/letsencrypt:/data/letsencrypt
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user