|
@ -94,7 +94,10 @@ export SERVICE_CONFIGSTORE='\$SERVICE_CONFIGSTORE' |
|
|
DOMAIN=www.example.com |
|
|
DOMAIN=www.example.com |
|
|
DOCKER_SITE_PATH=/var/www/\$DOMAIN |
|
|
DOCKER_SITE_PATH=/var/www/\$DOMAIN |
|
|
apache_vhost_create" |
|
|
apache_vhost_create" |
|
|
noerror |
|
|
|
|
|
|
|
|
is errlvl 0 |
|
|
|
|
|
is err part "\ |
|
|
|
|
|
relation-set protocol: |
|
|
|
|
|
| http" |
|
|
is out reg '^file_put \$SERVICE_CONFIGSTORE/.*/www.example.com.conf' |
|
|
is out reg '^file_put \$SERVICE_CONFIGSTORE/.*/www.example.com.conf' |
|
|
|
|
|
|
|
|
try " |
|
|
try " |
|
@ -107,6 +110,9 @@ ssl: true |
|
|
apache_vhost_create" |
|
|
apache_vhost_create" |
|
|
is errlvl 0 |
|
|
is errlvl 0 |
|
|
is err part "## Auto-redirection from http to https" |
|
|
is err part "## Auto-redirection from http to https" |
|
|
|
|
|
is err part "\ |
|
|
|
|
|
relation-set protocol: |
|
|
|
|
|
| https" |
|
|
is out reg '^file_put \$SERVICE_CONFIGSTORE/.*/www.example.com.conf' |
|
|
is out reg '^file_put \$SERVICE_CONFIGSTORE/.*/www.example.com.conf' |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -127,6 +133,9 @@ ssl: |
|
|
apache_vhost_create" |
|
|
apache_vhost_create" |
|
|
is errlvl 0 |
|
|
is errlvl 0 |
|
|
is err part "## Auto-redirection from http to https" |
|
|
is err part "## Auto-redirection from http to https" |
|
|
|
|
|
is err part "\ |
|
|
|
|
|
relation-set protocol: |
|
|
|
|
|
| https" |
|
|
is out part 'file_put $CONFIGSTORE/$BASE_SERVICE_NAME/etc/ssl/certs/www.example.com.pem |
|
|
is out part 'file_put $CONFIGSTORE/$BASE_SERVICE_NAME/etc/ssl/certs/www.example.com.pem |
|
|
| c' |
|
|
| c' |
|
|
is out part 'file_put $CONFIGSTORE/$BASE_SERVICE_NAME/etc/ssl/private/www.example.com.key |
|
|
is out part 'file_put $CONFIGSTORE/$BASE_SERVICE_NAME/etc/ssl/private/www.example.com.key |
|
@ -150,7 +159,10 @@ creds: |
|
|
toto: xxx |
|
|
toto: xxx |
|
|
' |
|
|
' |
|
|
apache_vhost_create" |
|
|
apache_vhost_create" |
|
|
noerror |
|
|
|
|
|
|
|
|
is errlvl 0 |
|
|
|
|
|
is err part "\ |
|
|
|
|
|
relation-set protocol: |
|
|
|
|
|
| http" |
|
|
is out reg "htpasswd -bc '/etc/apache2/sites-enabled/www.example.com.passwd' 'toto' 'xxx'" |
|
|
is out reg "htpasswd -bc '/etc/apache2/sites-enabled/www.example.com.passwd' 'toto' 'xxx'" |
|
|
is out reg 'docker run -i --entrypoint /bin/bash .* docker/apache' |
|
|
is out reg 'docker run -i --entrypoint /bin/bash .* docker/apache' |
|
|
|
|
|
|
|
|