1
0
mirror of https://github.com/zokradonh/kopano-docker synced 2025-06-07 07:56:12 +00:00

add question about the local ip to setup.sh

could partly resolve https://github.com/zokradonh/kopano-docker/issues/88

Signed-off-by: Felix Bartels <felix@host-consultants.de>
This commit is contained in:
Felix Bartels 2019-02-18 21:01:47 +01:00
parent 7451d13f83
commit 0fc1c3bef5

View File

@ -109,6 +109,11 @@ if [ ! -e ./.env ]; then
read -p "FQDN to be used (for reverse proxy) [$value_default]: " new_value
FQDN=${new_value:-$value_default}
LOCALIP=$(ip route get 1 | sed -n 's/^.*src \([0-9.]*\) .*$/\1/p')
value_default="$LOCALIP"
read -p "IP of your primary network interface (used to ensure to always resolve the FQDN) [$value_default]: " new_value
FQDNIP=${new_value:-$value_default}
value_default="self_signed"
read -p "Email address to use for Lets Encrypt.
Use 'self_signed' as your email to create self signed certificates.
@ -303,7 +308,7 @@ HTTPS=443
LDAPPORT=389
# Settings for test environments
EXTRAHOSTS=$FQDN:$(ip route get 1 | sed -n 's/^.*src \([0-9.]*\) .*$/\1/p')
EXTRAHOSTS=$FQDN:$FQDNIP
INSECURE=$INSECURE
# Docker Repository to push to/pull from