summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Sepulveda <javier.sepulveda@uv.es>2023-03-29 08:52:19 +0200
committerJavier Sepulveda <javier.sepulveda@uv.es>2023-03-29 08:52:19 +0200
commitbd807ded30eba27613f9d8f4e3df8761359509bc (patch)
tree2503ef333be4ea65dd63f36a5acd40c1b51f4d2f
parentdb58d6d0a56665a34c84d687db98b75b04ec6b4b (diff)
downloaddeployment-bd807ded30eba27613f9d8f4e3df8761359509bc.tar.gz
deployment-bd807ded30eba27613f9d8f4e3df8761359509bc.tar.bz2
deployment-bd807ded30eba27613f9d8f4e3df8761359509bc.zip
Place sed replacement --only within TLS
-rwxr-xr-xnetzbon/nginx_configurations/new_nginx_listen_80_certbot/config_nginx.sh9
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} \