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

alternative approach to internal name resolution

obsoletes EXTRA_HOST
This commit is contained in:
osboxes.org 2019-02-22 08:08:52 -05:00
parent 897a0df433
commit 7680cfc76f
3 changed files with 5 additions and 8 deletions

View File

@ -117,11 +117,6 @@ if [ ! -e ./.env ]; then
read -p "FQDN to be used (for reverse proxy) [$value_default]: " new_value read -p "FQDN to be used (for reverse proxy) [$value_default]: " new_value
FQDN=${new_value:-$value_default} 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" value_default="self_signed"
read -p "Email address to use for Lets Encrypt. read -p "Email address to use for Lets Encrypt.
Use 'self_signed' as your email to create self signed certificates. Use 'self_signed' as your email to create self signed certificates.
@ -318,7 +313,6 @@ HTTPS=443
LDAPPORT=389 LDAPPORT=389
# Settings for test environments # Settings for test environments
EXTRAHOSTS=$FQDN:$FQDNIP
INSECURE=$INSECURE INSECURE=$INSECURE
# Docker Repository to push to/pull from # Docker Repository to push to/pull from

View File

@ -3,6 +3,9 @@ FROM kopano/kwebd:${CODE_VERSION}
ARG CODE_VERSION ARG CODE_VERSION
ENV CODE_VERSION="${CODE_VERSION}" ENV CODE_VERSION="${CODE_VERSION}"
ENV KWEBD_USER root
ENV KWEBD_GROUP root
USER root
COPY wrapper.sh /usr/local/bin COPY wrapper.sh /usr/local/bin
COPY kweb.cfg /etc/kweb.cfg COPY kweb.cfg /etc/kweb.cfg

View File

@ -1,8 +1,8 @@
:8080 { :80 {
redir / https://{host}{uri} redir / https://{host}{uri}
} }
*, :8443 { *, :443 {
log stdout log stdout
errors stdout errors stdout