Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
11 changed files
with
88 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +0,0 @@ | ||
[submodule "caddy"] | ||
path = caddy | ||
url = https://github.com/fbartels/caddy-gen.git | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule caddy
deleted from
90af1a
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
FROM kopano/kwebd:0.4.2 | ||
COPY wrapper.sh /usr/local/bin | ||
COPY kweb.cfg /etc/kweb.cfg | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
:8080 { | ||
redir / https://{host}{uri} | ||
} | ||
|
||
*, :8443 { | ||
gzip | ||
|
||
tls {%EMAIL%} | ||
|
||
redir 302 { | ||
if {path} is / | ||
/ /webapp/ | ||
} | ||
|
||
proxy /webapp/ kopano_webapp:80 { | ||
transparent | ||
} | ||
redir /webapp /webapp/ | ||
|
||
proxy /Microsoft-Server-ActiveSync kopano_zpush:80 { | ||
transparent | ||
} | ||
|
||
proxy /ldap-admin/ ldap-admin:80 { | ||
without /ldap-admin | ||
transparent | ||
} | ||
redir /ldap-admin /ldap-admin/ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
if [ "$EMAIL" = "self_signed" ]; then | ||
# do not use the '-host' option if using a self signed cert | ||
exec kwebd caddy -conf /etc/kweb.cfg -agree | ||
else | ||
exec kwebd caddy -conf /etc/kweb.cfg -agree -host "$FQDN" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters