diff options
author | Javier Sepulveda <javier.sepulveda@uv.es> | 2023-03-29 08:52:19 +0200 |
---|---|---|
committer | Javier Sepulveda <javier.sepulveda@uv.es> | 2023-04-05 11:18:04 +0200 |
commit | 8b6f5daeefa640e97aeab12d49e0a7524af2807c (patch) | |
tree | b5074c9151aeef6701cf2528af6fe3d57923c021 | |
parent | fd23dfef2eaa8b64e2d91fe6ec077619acfaff31 (diff) | |
download | deployment-8b6f5daeefa640e97aeab12d49e0a7524af2807c.tar.gz deployment-8b6f5daeefa640e97aeab12d49e0a7524af2807c.tar.bz2 deployment-8b6f5daeefa640e97aeab12d49e0a7524af2807c.zip |
Place sed replacement --only within TLS
-rwxr-xr-x | netzbon/nginx_configurations/new_nginx_listen_80_certbot/config_nginx.sh | 9 |
1 files 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 index f4d7ddc..6d03f77 100755 --- 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} \ |