mirror of
https://github.com/zokradonh/kopano-docker
synced 2025-06-06 15:36:40 +00:00
fallback to a hardcoded value in case FQDNCLEANED is not set (#443)
* fallback to a hardcoded value in case FQDNCLEANED is not set * strip ports in kweb startup script
This commit is contained in:
parent
9a7bca01c7
commit
045ca52d79
@ -8,7 +8,7 @@ services:
|
||||
environment:
|
||||
- DEFAULTREDIRECT=${DEFAULTREDIRECT:-/webapp}
|
||||
- EMAIL=${EMAIL:-off}
|
||||
- FQDN=${FQDNCLEANED?err}
|
||||
- FQDN=${FQDN}
|
||||
- TLS_MODE=tls_auto
|
||||
volumes:
|
||||
- /etc/machine-id:/etc/machine-id
|
||||
@ -17,7 +17,7 @@ services:
|
||||
networks:
|
||||
web-net:
|
||||
aliases:
|
||||
- ${FQDNCLEANED?err}
|
||||
- ${FQDNCLEANED:-domain.invalid}
|
||||
|
||||
kopano_ssl:
|
||||
image: ${docker_repo:-zokradonh}/kopano_ssl:${SSL_VERSION:-latest}
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
Example provided by [ronnybremer](https://github.com/ronnybremer) in [Add reverse proxy example for Apache](https://github.com/zokradonh/kopano-docker/issues/372).
|
||||
|
||||
To be able to use a different proxy, than the bundled kweb the env variable `FQDNCLEANED` needs to be set to an invalid value (to not route traffic through it, but the external proxy). Additionally `EMAIL` needs to be set to `off`.
|
||||
To be able to use a different proxy, than the bundled kweb the env variable `FQDNCLEANED` needs to be unset (to not route traffic through it, but the external proxy). Additionally `EMAIL` needs to be set to `off`.
|
||||
|
||||
```bash
|
||||
<VirtualHost aaa.bbb.ccc.ddd:443 [aaaa:bbbb:cccc:dddd:eeee:ffff::yy]:443>
|
||||
|
@ -11,7 +11,7 @@ services:
|
||||
environment:
|
||||
- DEFAULTREDIRECT=/meet
|
||||
- EMAIL=${EMAIL:-off}
|
||||
- FQDN=${FQDNCLEANED?err}
|
||||
- FQDN=${FQDN}
|
||||
command: wrapper.sh
|
||||
volumes:
|
||||
- /etc/machine-id:/etc/machine-id
|
||||
@ -20,7 +20,7 @@ services:
|
||||
networks:
|
||||
web-net:
|
||||
aliases:
|
||||
- ${FQDNCLEANED?err}
|
||||
- ${FQDNCLEANED:-domain.invalid}
|
||||
|
||||
ldap:
|
||||
image: ${docker_repo:-kopano}/${LDAP_CONTAINER:-kopano_ldap_demo}:${LDAP_VERSION:-latest}
|
||||
|
@ -42,7 +42,7 @@ TLS_MODE=tls_off
|
||||
|
||||
In case there is already an ssl terminating proxy in the network this container can be switched to plain http by either setting `EMAIL=off` or `TLS_MODE=tls_off`.
|
||||
|
||||
In addition to this the default docker-compose.yml has a tweak to [route all traffic for the configured domain through this container](https://github.com/zokradonh/kopano-docker/blob/3572fc74e7054c9774985e69aeed745f9e5d1a4f/docker-compose.yml#L19-L20). This route needs to be changed when this container is only offering http access by either putting another domain in `FQDNCLEANED` or removing this section altogether.
|
||||
In addition to this the default docker-compose.yml has a tweak to [route all traffic for the configured domain through this container](https://github.com/zokradonh/kopano-docker/blob/3572fc74e7054c9774985e69aeed745f9e5d1a4f/docker-compose.yml#L19-L20). This route needs to be changed when this container is only offering http access by removing `FQDNCLEANED` from `.env`.
|
||||
|
||||
When using an external reverse proxy it is recommended to proxy connections to port 2015 of this container. Additionally connections to `/api/kwm/v2/rtm/websocket` need to be upgraded to websocket connections.
|
||||
|
||||
|
@ -10,6 +10,9 @@ fi
|
||||
|
||||
export CADDYPATH="$KOPANO_KWEB_ASSETS_PATH"
|
||||
|
||||
# remove ports from FQDN
|
||||
export FQDN=${FQDN%:*}
|
||||
|
||||
# services need to be aware of the machine-id
|
||||
if [ "$AUTOCONFIGURE" = true ]; then
|
||||
dockerize \
|
||||
|
Loading…
x
Reference in New Issue
Block a user