mirror of
https://github.com/zokradonh/kopano-docker
synced 2025-06-07 16:06:14 +00:00
make it possible to redirect to another url, than /webapp (#221)
* make it possible to redirect to another url, than /webapp * add documentation * define default value in container * add value to .env through setup.sh
This commit is contained in:
parent
b0236bf0d8
commit
a7f0d298ad
@ -7,6 +7,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- EMAIL=${EMAIL:-off}
|
- EMAIL=${EMAIL:-off}
|
||||||
- FQDN=${FQDNCLEANED?err}
|
- FQDN=${FQDNCLEANED?err}
|
||||||
|
- DEFAULTREDIRECT=${DEFAULTREDIRECT:-/webapp}
|
||||||
command: wrapper.sh
|
command: wrapper.sh
|
||||||
cap_drop:
|
cap_drop:
|
||||||
- ALL
|
- ALL
|
||||||
|
1
setup.sh
1
setup.sh
@ -299,6 +299,7 @@ TZ=$TZ
|
|||||||
# Defines how Kopano can be accessed from the outside world
|
# Defines how Kopano can be accessed from the outside world
|
||||||
FQDN=$FQDN
|
FQDN=$FQDN
|
||||||
FQDNCLEANED=${FQDN%:*}
|
FQDNCLEANED=${FQDN%:*}
|
||||||
|
DEFAULTREDIRECT=/webapp
|
||||||
EMAIL=$EMAIL
|
EMAIL=$EMAIL
|
||||||
CADDY=2015
|
CADDY=2015
|
||||||
HTTP=80
|
HTTP=80
|
||||||
|
@ -5,6 +5,7 @@ ARG VCS_REF
|
|||||||
ARG CODE_VERSION
|
ARG CODE_VERSION
|
||||||
|
|
||||||
ENV CODE_VERSION="${CODE_VERSION}"
|
ENV CODE_VERSION="${CODE_VERSION}"
|
||||||
|
ENV DEFAULTREDIRECT="/webapp"
|
||||||
|
|
||||||
COPY wrapper.sh /usr/local/bin
|
COPY wrapper.sh /usr/local/bin
|
||||||
COPY kweb.cfg /etc/kweb.cfg
|
COPY kweb.cfg /etc/kweb.cfg
|
||||||
|
@ -4,4 +4,14 @@
|
|||||||
|
|
||||||
Reverse Proxy to securely and with as less configuration effort as possible expose Kopano to the public internet.
|
Reverse Proxy to securely and with as less configuration effort as possible expose Kopano to the public internet.
|
||||||
|
|
||||||
|
In its default configuration this container will redirect requests to the root of the domain (so for example when opening https://kopano.demo/ in a browser) to https://kopano.demo/webapp. To redirect to a different path the environment variable `DEFAULTREDIRECT` needs to be configured.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
```
|
||||||
|
# the following value needs to be added to .env
|
||||||
|
DEFAULTREDIRECT=/meet
|
||||||
|
```
|
||||||
|
|
||||||
|
## Information needed when not running your own reverse proxy
|
||||||
|
|
||||||
The `kopano_webapp` container is accessible on port 9080 and serves the WebApp on `/webapp`.
|
The `kopano_webapp` container is accessible on port 9080 and serves the WebApp on `/webapp`.
|
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
redir 302 {
|
redir 302 {
|
||||||
if {path} is /
|
if {path} is /
|
||||||
/ /webapp/
|
/ {%DEFAULTREDIRECT%}/
|
||||||
}
|
}
|
||||||
|
|
||||||
# Config
|
# Config
|
||||||
|
Loading…
x
Reference in New Issue
Block a user