mirror of
https://github.com/TeamPiped/Piped-Docker.git
synced 2024-12-13 22:00:40 +05:30
configure will now only handle the nginx reverse proxy and will default to 8080
This commit is contained in:
parent
fa30251c66
commit
d99e3d7f75
@ -3,7 +3,14 @@ echo "Enter a hostname for the Frontend (eg: piped.kavin.rocks):" && read -r fro
|
||||
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
|
||||
echo "Enter a port to use for the reverse proxy:" && read -r port
|
||||
port=8080 # Define default port
|
||||
if [[ $reverseproxy = "nginx" ]]; then # if the nginx reverse proxy is used, we want to get a custom port
|
||||
echo "Enter a port to use for the reverse proxy:" && read -r port
|
||||
fi
|
||||
integerregex='^[0-9]+$'
|
||||
if ! [[ $port =~ $integerregex ]] ; then # ensure that the port is an integer. If it is not set it to the default.
|
||||
port=8080
|
||||
fi
|
||||
|
||||
rm -rf config/
|
||||
rm -f docker-compose.yml
|
||||
|
Loading…
Reference in New Issue
Block a user