1
0
mirror of https://github.com/zokradonh/kopano-docker.git synced 2026-08-22 22:03:03 +00:00

rework current front facing proxy (#40)

* replace previous caddy construct with kopano kweb
* add kweb to makefile
* greatly simplifies setup, if user wants to tweak config of kweb he could do so in git and make a local build. Fixes #22 
* ping kweb version
* update readme
* remove build argument from docker-compose for web and ldap-demo
* fix certificate handling in kweb. fixes #38
This commit is contained in:
Felix Bartels
2018-12-01 04:36:11 +01:00
committed by GitHub
parent 6c5af47de1
commit 7948612803
11 changed files with 88 additions and 40 deletions
+13 -8
View File
@@ -1,4 +1,6 @@
#!/bin/bash
#!/bin/sh
set -e
if [ ! -e ./docker-compose.yml ]; then
echo "copying example compose file"
@@ -20,8 +22,12 @@ if [ ! -e ./.env ]; then
LDAP_ORGANISATION=${new_value:-$value_default}
value_default="kopano.demo"
read -p "Domain to be used (for LDAP and reverse proxy) [$value_default]: " new_value
LDAP_DOMAIN=${new_value:-$value_default}
read -p "FQDN to be used (for reverse proxy) [$value_default]: " new_value
FQDN=${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 [$value_default]: " new_value
EMAIL=${new_value:-$value_default}
value_default="dc=kopano,dc=demo"
read -p "Name of the BASE DN for LDAP [$value_default]: " new_value
@@ -83,7 +89,7 @@ CORE_VERSION=$CORE_VERSION
WEBAPP_VERSION=$WEBAPP_VERSION
LDAP_ORGANISATION="$LDAP_ORGANISATION"
LDAP_DOMAIN=$LDAP_DOMAIN
LDAP_DOMAIN=$FQDN
LDAP_BASE_DN=$LDAP_BASE_DN
LDAP_SERVER=$LDAP_SERVER
LDAP_ADMIN_PASSWORD=$LDAP_ADMIN_PASSWORD
@@ -115,9 +121,8 @@ POSTMASTER_ADDRESS=$POSTMASTER_ADDRESS
TZ=$TZ
# Defines how Kopano can be accessed from the outside world
WEBAPP_HOST=webapp.$LDAP_DOMAIN
ZPUSH_HOST=zpush.$LDAP_DOMAIN
LDAP_HOST=ldap.$LDAP_DOMAIN
FQDN=$FQDN
EMAIL=$EMAIL
HTTP=80
HTTPS=443
@@ -138,4 +143,4 @@ else
fi
# build the local docker containers. This has the benefit that it will warn about empty variables
docker-compose build
#docker-compose build