mirror of
https://github.com/zokradonh/kopano-docker
synced 2025-06-06 15:36:40 +00:00
Enable separately hosted kwmbridge (#471)
* block access to internal endpoints * add dedicated vhost for kwmserver mcu api * update docker-compose.yml
This commit is contained in:
parent
e7c5d10753
commit
29f06f906c
@ -16,7 +16,8 @@ services:
|
||||
environment:
|
||||
- INSECURE=${INSECURE}
|
||||
- oidc_issuer_identifier=https://${FQDN}
|
||||
- kwm_server_urls=https://${FQDN}
|
||||
- kwm_server_urls=http://kwmserver:8778
|
||||
#- kwm_server_urls=https://${FQDNCLEANED}:8443
|
||||
- use_nat_1to1_ips=${PUBLICIP}
|
||||
- use_nat_1to1_candidate_type=host
|
||||
- ice_udp_port_range=65435:65535
|
||||
|
@ -1,6 +1,9 @@
|
||||
version: "3.5"
|
||||
|
||||
services:
|
||||
web:
|
||||
ports:
|
||||
- "8443:8443" # this port should be firewalled off so that only known instances of kwmbridge can connect tot it
|
||||
kopano_kwmserver:
|
||||
environment:
|
||||
- enable_mcu_api=yes
|
||||
@ -14,7 +17,7 @@ services:
|
||||
environment:
|
||||
- INSECURE=${INSECURE}
|
||||
- oidc_issuer_identifier=https://${FQDN}
|
||||
- kwm_server_urls=https://${FQDN}
|
||||
- kwm_server_urls=https://${FQDNCLEANED}:8443
|
||||
env_file:
|
||||
- kopano_kwmbridge.env
|
||||
volumes:
|
||||
|
23
web/kweb.cfg
23
web/kweb.cfg
@ -137,6 +137,10 @@
|
||||
to /upstreams/kwmserver/{path}
|
||||
}
|
||||
|
||||
# block access to internal endpoints
|
||||
internal /upstreams/kwmserver/api/kwm/v2/admin
|
||||
internal /upstreams/kwmserver/api/kwm/v2/mcu
|
||||
|
||||
proxy /meet/ {%KWEBD_DNS_MEET%}:9080 {
|
||||
fail_timeout 10s
|
||||
try_duration 30s
|
||||
@ -247,3 +251,22 @@
|
||||
|
||||
import /etc/kweb-extras/*
|
||||
}
|
||||
|
||||
{%FQDN%}:8443 {
|
||||
log stdout
|
||||
errors stdout
|
||||
|
||||
gzip
|
||||
header / Server kweb
|
||||
|
||||
# tls settings. defaults to tls_auto
|
||||
import /etc/{%TLS_MODE%}
|
||||
|
||||
# serve static content from /var/www/
|
||||
root /var/www/
|
||||
|
||||
proxy /api/kwm/v2/mcu/ {%KWEBD_DNS_KWMSERVER%}:8778 {
|
||||
websocket
|
||||
transparent
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user