mirror of
https://github.com/zokradonh/kopano-docker.git
synced 2026-08-11 16:32:59 +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:
@@ -5,6 +5,7 @@ ARG VCS_REF
|
||||
ARG CODE_VERSION
|
||||
|
||||
ENV CODE_VERSION="${CODE_VERSION}"
|
||||
ENV DEFAULTREDIRECT="/webapp"
|
||||
|
||||
COPY wrapper.sh /usr/local/bin
|
||||
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.
|
||||
|
||||
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`.
|
||||
+1
-1
@@ -19,7 +19,7 @@
|
||||
|
||||
redir 302 {
|
||||
if {path} is /
|
||||
/ /webapp/
|
||||
/ {%DEFAULTREDIRECT%}/
|
||||
}
|
||||
|
||||
# Config
|
||||
|
||||
Reference in New Issue
Block a user