2023-03-10 05:39:11 +05:30
|
|
|
#!/bin/sh
|
2021-12-01 09:57:34 +05:30
|
|
|
echo "Enter a hostname for the Frontend (eg: piped.kavin.rocks):" && read -r frontend
|
|
|
|
echo "Enter a hostname for the Backend (eg: pipedapi.kavin.rocks):" && read -r backend
|
|
|
|
echo "Enter a hostname for the Proxy (eg: pipedproxy.kavin.rocks):" && read -r proxy
|
|
|
|
echo "Enter the reverse proxy you would like to use (either caddy or nginx):" && read -r reverseproxy
|
2024-04-28 13:29:35 +05:30
|
|
|
echo "Enter a port to use for the reverse proxy:" && read -r port
|
2021-09-25 19:14:58 +05:30
|
|
|
|
2021-08-25 13:21:41 +05:30
|
|
|
rm -rf config/
|
2021-09-25 19:14:58 +05:30
|
|
|
rm -f docker-compose.yml
|
2021-08-25 13:21:41 +05:30
|
|
|
|
|
|
|
cp -r template/ config/
|
|
|
|
|
|
|
|
sed -i "s/FRONTEND_HOSTNAME/$frontend/g" config/*
|
|
|
|
sed -i "s/BACKEND_HOSTNAME/$backend/g" config/*
|
|
|
|
sed -i "s/PROXY_HOSTNAME/$proxy/g" config/*
|
2024-04-28 13:29:35 +05:30
|
|
|
sed -i "s/PORT_VALUE/$port/g" config/*
|
2021-08-25 17:21:03 +05:30
|
|
|
|
2021-09-25 19:14:58 +05:30
|
|
|
mv config/docker-compose.$reverseproxy.yml docker-compose.yml
|