summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-03-06 20:13:50 +0100
committerChristian Grothoff <christian@grothoff.org>2023-03-06 20:13:56 +0100
commita30235e4b5ac7676f576c867e9d705c5dc970e39 (patch)
treed881d1e1c7ce7e982e54dbd76ec8d0ac6022ca58
parent419c02da795d4fb5c1a0cde5601394c0ed2a68b6 (diff)
downloaddeployment-a30235e4b5ac7676f576c867e9d705c5dc970e39.tar.gz
deployment-a30235e4b5ac7676f576c867e9d705c5dc970e39.tar.bz2
deployment-a30235e4b5ac7676f576c867e9d705c5dc970e39.zip
subtitute all localhosts
-rwxr-xr-xnetzbon/config_nginx.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/netzbon/config_nginx.sh b/netzbon/config_nginx.sh
index 6cb0353..1d355fd 100755
--- a/netzbon/config_nginx.sh
+++ b/netzbon/config_nginx.sh
@@ -26,22 +26,21 @@ SITES_AVAILABLE_DIR=/etc/nginx/sites-available
SITES_ENABLED_DIR=/etc/nginx/sites-enabled
cat ${SITES_AVAILABLE_DIR}/taler-exchange \
- | sed -e "s/server_name localhost/server_name exchange.${DOMAIN_NAME}/g" \
+ | sed -e "s/localhost/exchange.${DOMAIN_NAME}/g" \
| sed -e "s/location \/taler-exchange\//location \//g" \
- | sed -e "s/\"localhost\"/\"exchange.${DOMAIN_NAME}\"/g" \
> ${SITES_AVAILABLE_DIR}/taler-exchange.${DOMAIN_NAME}
rm -f ${SITES_ENABLED_DIR}/exchange.${DOMAIN_NAME}
ln -s ${SITES_AVAILABLE_DIR}/taler-exchange.${DOMAIN_NAME} ${SITES_ENABLED_DIR}/exchange.${DOMAIN_NAME}
cat ${SITES_AVAILABLE_DIR}/taler-merchant \
- | sed -e "s/server_name localhost/server_name backend.${DOMAIN_NAME}/g" \
+ | sed -e "s/localhost/backend.${DOMAIN_NAME}/g" \
| sed -e "s/location \/taler-merchant\//location \//g" \
> ${SITES_AVAILABLE_DIR}/taler-merchant.${DOMAIN_NAME}
rm -f ${SITES_ENABLED_DIR}/backend.${DOMAIN_NAME}
ln -s ${SITES_AVAILABLE_DIR}/taler-merchant.${DOMAIN_NAME} ${SITES_ENABLED_DIR}/backend.${DOMAIN_NAME}
cat ${SITES_AVAILABLE_DIR}/libeufin-sandbox \
- | sed -e "s/server_name localhost/server_name bank.${DOMAIN_NAME}/g" \
+ | sed -e "s/localhost/bank.${DOMAIN_NAME}/g" \
> ${SITES_AVAILABLE_DIR}/libeufin-sandbox.${DOMAIN_NAME}
rm -f ${SITES_ENABLED_DIR}/bank.${DOMAIN_NAME}
ln -s ${SITES_AVAILABLE_DIR}/libeufin-sandbox.${DOMAIN_NAME} ${SITES_ENABLED_DIR}/bank.${DOMAIN_NAME}