diff options
author | Florian Dold <florian@dold.me> | 2023-04-12 15:13:37 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-04-12 15:13:37 +0200 |
commit | e6ef6dd78416691a5ec286e52da5d466dd49d3d9 (patch) | |
tree | 14f173c8a22241242d9195004e93474b99390df4 /netzbon/config_nginx.sh | |
parent | db2490aef2993025b88b6ce8704bfeff327200d8 (diff) | |
download | deployment-e6ef6dd78416691a5ec286e52da5d466dd49d3d9.tar.gz deployment-e6ef6dd78416691a5ec286e52da5d466dd49d3d9.tar.bz2 deployment-e6ef6dd78416691a5ec286e52da5d466dd49d3d9.zip |
netzbon: also handle http
Diffstat (limited to 'netzbon/config_nginx.sh')
-rwxr-xr-x | netzbon/config_nginx.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/netzbon/config_nginx.sh b/netzbon/config_nginx.sh index b803c43..8f7764c 100755 --- a/netzbon/config_nginx.sh +++ b/netzbon/config_nginx.sh @@ -2,7 +2,15 @@ source functions.sh source config/user.conf -export DOMAIN_NAME=${DOMAIN_NAME} + +if test "${ENABLE_TLS:-}" == "y"; then + PROTO="https" +else + PROTO="http" +fi + +export PROTO +export DOMAIN_NAME envsubst <nginx-conf/backend.taler-nginx.conf >/etc/nginx/sites-available/backend.${DOMAIN_NAME} envsubst <nginx-conf/bank.taler-nginx.conf >/etc/nginx/sites-available/bank.${DOMAIN_NAME} |