From cb291ebf24df790ace6f99b162b52b04fc8ba5b9 Mon Sep 17 00:00:00 2001 From: Tushar <30565750+tushar5526@users.noreply.github.com> Date: Fri, 19 Jan 2024 00:30:05 +0530 Subject: [PATCH] Use Sarthi conf template to setup proxy conf (#18) * add sarthi.conf template * remove -i from sed command --- .gitignore | 5 ++++- sarthi.conf => sarthi.conf.template | 0 setup-sarthi.sh | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) rename sarthi.conf => sarthi.conf.template (100%) diff --git a/.gitignore b/.gitignore index cf2bdea..264d252 100644 --- a/.gitignore +++ b/.gitignore @@ -19,4 +19,7 @@ venv.bak/ deployments/* nginx-confs/* -*keys.txt \ No newline at end of file +*keys.txt + +# Ignore the nginx conf for sarthi +sarthi.conf \ No newline at end of file diff --git a/sarthi.conf b/sarthi.conf.template similarity index 100% rename from sarthi.conf rename to sarthi.conf.template diff --git a/setup-sarthi.sh b/setup-sarthi.sh index b853ece..dbdb99d 100755 --- a/setup-sarthi.sh +++ b/setup-sarthi.sh @@ -70,7 +70,7 @@ echo "ENV='$ENV'" >> .env echo "DOMAIN_NAME='$DOMAIN_NAME'" >> .env echo "SECRET_TEXT='$SECRET_TEXT'" >> .env -sed -i "s/domain_name/$DOMAIN_NAME/g" "sarthi.conf" +sed "s/domain_name/$DOMAIN_NAME/g" "sarthi.conf.template" > "sarthi.conf" # Start Grafaa + Loki services echo -e "${YELLOW}${POINT} Starting Loki + Grafana to export logs ${NC}"