|
@ -3,6 +3,8 @@ |
|
|
set -e |
|
|
set -e |
|
|
|
|
|
|
|
|
URL=$(relation-get url) || exit 1 |
|
|
URL=$(relation-get url) || exit 1 |
|
|
|
|
|
DOMAIN=$(relation-get domain) || exit 1 |
|
|
|
|
|
|
|
|
PROTO="${URL%%://*}" |
|
|
PROTO="${URL%%://*}" |
|
|
|
|
|
|
|
|
ssl_enable=true |
|
|
ssl_enable=true |
|
@ -24,6 +26,6 @@ config-add "\ |
|
|
services: |
|
|
services: |
|
|
$MASTER_BASE_SERVICE_NAME: |
|
|
$MASTER_BASE_SERVICE_NAME: |
|
|
environment: |
|
|
environment: |
|
|
server_name: \"$URL\" |
|
|
|
|
|
|
|
|
server_name: \"$DOMAIN\" |
|
|
extra_params: \"--o:ssl.enable=false --o:ssl.termination=${ssl_enable} \" |
|
|
extra_params: \"--o:ssl.enable=false --o:ssl.termination=${ssl_enable} \" |
|
|
" |
|
|
" |