taler-deployment

Deployment scripts and configuration files
Log | Files | Refs | README

commit bd807ded30eba27613f9d8f4e3df8761359509bc
parent db58d6d0a56665a34c84d687db98b75b04ec6b4b
Author: Javier Sepulveda <javier.sepulveda@uv.es>
Date:   Wed, 29 Mar 2023 08:52:19 +0200

Place sed replacement --only within TLS

Diffstat:
Mnetzbon/nginx_configurations/new_nginx_listen_80_certbot/config_nginx.sh | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/netzbon/nginx_configurations/new_nginx_listen_80_certbot/config_nginx.sh b/netzbon/nginx_configurations/new_nginx_listen_80_certbot/config_nginx.sh @@ -8,12 +8,15 @@ envsubst <backend.taler-nginx.conf > /etc/nginx/sites-available/backend.${DOMAIN envsubst <bank.taler-nginx.conf > /etc/nginx/sites-available/bank.${DOMAIN_NAME} envsubst <exchange.taler-nginx.conf > /etc/nginx/sites-available/exchange.${DOMAIN_NAME} -# Replace http to https, to avoid error of mixed content +if test ${ENABLE_TLS} == "y" +then + +# patch to: Replace http to https, to avoid error of mixed content sed -i "s/http:\/\/bank./https:\/\/bank./g" /etc/libeufin/demobank-ui-settings.js -if test ${ENABLE_TLS} == "y" -then +# Certbot + say "Obtaining TLS certificates" certbot -d ${DOMAIN_NAME} \