commit 8b6f5daeefa640e97aeab12d49e0a7524af2807c parent fd23dfef2eaa8b64e2d91fe6ec077619acfaff31 Author: Javier Sepulveda <javier.sepulveda@uv.es> Date: Wed, 29 Mar 2023 08:52:19 +0200 Place sed replacement --only within TLS Diffstat:
| M | netzbon/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} \