|
|
@ -145,8 +145,8 @@ domain: www.example.com |
|
|
|
'" |
|
|
|
is errlvl 0 |
|
|
|
is err part "\ |
|
|
|
relation-set protocol: |
|
|
|
| http" |
|
|
|
relation-set url: |
|
|
|
| http://www.example.com" |
|
|
|
is out reg '^file_put \$SERVICE_CONFIGSTORE/.*/www.example.com.conf' |
|
|
|
|
|
|
|
try " |
|
|
@ -172,8 +172,8 @@ apache_vhost_create publish_dir \"\$CFG\" |
|
|
|
is errlvl 0 |
|
|
|
is err part "## Auto-redirection from http to https" |
|
|
|
is err part "\ |
|
|
|
relation-set protocol: |
|
|
|
| https" |
|
|
|
relation-set url: |
|
|
|
| https://www.example.com" |
|
|
|
is out reg '^file_put \$SERVICE_CONFIGSTORE/.*/www.example.com.conf' |
|
|
|
|
|
|
|
|
|
|
@ -207,8 +207,8 @@ apache_vhost_create publish_dir \"\$CFG\" |
|
|
|
is errlvl 0 |
|
|
|
is err part "## Auto-redirection from http to https" |
|
|
|
is err part "\ |
|
|
|
relation-set protocol: |
|
|
|
| https" |
|
|
|
relation-set url: |
|
|
|
| https://www.example.com" |
|
|
|
is out part 'file_put $CONFIGSTORE/$BASE_SERVICE_NAME/etc/ssl/certs/www.example.com.pem |
|
|
|
| c' |
|
|
|
is out part 'file_put $CONFIGSTORE/$BASE_SERVICE_NAME/etc/ssl/private/www.example.com.key |
|
|
@ -234,19 +234,21 @@ apache_vhost_create publish_dir \"\$CFG\" |
|
|
|
" |
|
|
|
is errlvl 0 |
|
|
|
is err part "\ |
|
|
|
relation-set protocol: |
|
|
|
| http" |
|
|
|
relation-set url: |
|
|
|
| http://www.example.com" |
|
|
|
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' |
|
|
|
|
|
|
|
try " |
|
|
|
export SERVICE_CONFIGSTORE='\$SERVICE_CONFIGSTORE' |
|
|
|
apache_vhost_create publish_dir '' ',http,' '000-default'" |
|
|
|
is errlvl 0 |
|
|
|
is err part "\ |
|
|
|
relation-set protocol: |
|
|
|
| http" |
|
|
|
is out reg '^file_put \$SERVICE_CONFIGSTORE/.*/000-default.conf' |
|
|
|
|
|
|
|
## XXXvlab: we don't need this feature anymore it seems |
|
|
|
# try " |
|
|
|
# export SERVICE_CONFIGSTORE='\$SERVICE_CONFIGSTORE' |
|
|
|
# apache_vhost_create publish_dir '' ',http,' '000-default'" |
|
|
|
# is errlvl 0 |
|
|
|
# is err part "\ |
|
|
|
# relation-set url: |
|
|
|
# | http://" ## XXXvlab: this isn't right, is it ? |
|
|
|
# is out reg '^file_put \$SERVICE_CONFIGSTORE/.*/000-default.conf' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|