From 0fc1c3bef57959b643625b434eabcbf9faecc460 Mon Sep 17 00:00:00 2001 From: Felix Bartels Date: Mon, 18 Feb 2019 21:01:47 +0100 Subject: [PATCH] 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 --- setup.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index ddc86a7..77cbf2d 100755 --- a/setup.sh +++ b/setup.sh @@ -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