mirror of
https://github.com/zokradonh/kopano-docker.git
synced 2026-08-11 16:32:59 +00:00
Enforce .editorconfig by running eclint (#213)
* tune .editorconfig for the existing files * fix reported linting issues * travis: switch language to node_js to be able to run npm * travis: build on ubuntu bionic
This commit is contained in:
+6
-6
@@ -1,7 +1,7 @@
|
||||
# Kopano Web image
|
||||
|
||||
[](https://microbadger.com/images/zokradonh/kopano_web "Microbadger size/labels") [](https://microbadger.com/images/zokradonh/kopano_web "Microbadger version")
|
||||
|
||||
Reverse Proxy to securely and with as less configuration effort as possible expose Kopano to the public internet.
|
||||
|
||||
# Kopano Web image
|
||||
|
||||
[](https://microbadger.com/images/zokradonh/kopano_web "Microbadger size/labels") [](https://microbadger.com/images/zokradonh/kopano_web "Microbadger version")
|
||||
|
||||
Reverse Proxy to securely and with as less configuration effort as possible expose Kopano to the public internet.
|
||||
|
||||
The `kopano_webapp` container is accessible on port 9080 and serves the WebApp on `/webapp`.
|
||||
+172
-172
@@ -1,200 +1,200 @@
|
||||
{%FQDN%}:80, :80 {
|
||||
redir / https://{host}{uri}
|
||||
redir / https://{host}{uri}
|
||||
}
|
||||
|
||||
# kweb >=0.7.0 needs the explicit hostname to be set
|
||||
{%FQDN%}, *:2015, *:443 {
|
||||
log stdout
|
||||
errors stdout
|
||||
log stdout
|
||||
errors stdout
|
||||
|
||||
gzip
|
||||
header / Server kweb
|
||||
gzip
|
||||
header / Server kweb
|
||||
|
||||
tls {%EMAIL%}
|
||||
tls {%EMAIL%}
|
||||
|
||||
limits {
|
||||
header 1MB
|
||||
body 50MB
|
||||
}
|
||||
limits {
|
||||
header 1MB
|
||||
body 50MB
|
||||
}
|
||||
|
||||
redir 302 {
|
||||
if {path} is /
|
||||
/ /webapp/
|
||||
}
|
||||
redir 302 {
|
||||
if {path} is /
|
||||
/ /webapp/
|
||||
}
|
||||
|
||||
# Config
|
||||
proxy /api/config/v1/kopano/meet/ http://kopano_meet:9080/ {
|
||||
fail_timeout 10s
|
||||
try_duration 30s
|
||||
transparent
|
||||
keepalive 100
|
||||
}
|
||||
# Config
|
||||
proxy /api/config/v1/kopano/meet/ http://kopano_meet:9080/ {
|
||||
fail_timeout 10s
|
||||
try_duration 30s
|
||||
transparent
|
||||
keepalive 100
|
||||
}
|
||||
|
||||
# Konnect
|
||||
proxy /upstreams/konnect/ {
|
||||
without /upstreams/konnect/
|
||||
upstream kopano_konnect:8777
|
||||
policy least_conn
|
||||
health_check /health-check
|
||||
fail_timeout 10s
|
||||
try_duration 30s
|
||||
keepalive 100
|
||||
transparent
|
||||
header_downstream Feature-Policy "midi 'none'"
|
||||
header_downstream X-Frame-Options "sameorigin"
|
||||
}
|
||||
ratelimit * 100 200 minute {
|
||||
/upstreams/konnect/v1/
|
||||
/signin/v1/identifier/_/
|
||||
whitelist 127.0.0.1/8
|
||||
}
|
||||
rewrite /.well-known/openid-configuration {
|
||||
to /upstreams/konnect/{path}
|
||||
}
|
||||
rewrite /konnect/v1/ {
|
||||
to /upstreams/konnect/{path}
|
||||
}
|
||||
rewrite /signin/v1/ {
|
||||
to /upstreams/konnect/{path}
|
||||
}
|
||||
redir /signin /signin/v1/identifier
|
||||
# Konnect
|
||||
proxy /upstreams/konnect/ {
|
||||
without /upstreams/konnect/
|
||||
upstream kopano_konnect:8777
|
||||
policy least_conn
|
||||
health_check /health-check
|
||||
fail_timeout 10s
|
||||
try_duration 30s
|
||||
keepalive 100
|
||||
transparent
|
||||
header_downstream Feature-Policy "midi 'none'"
|
||||
header_downstream X-Frame-Options "sameorigin"
|
||||
}
|
||||
ratelimit * 100 200 minute {
|
||||
/upstreams/konnect/v1/
|
||||
/signin/v1/identifier/_/
|
||||
whitelist 127.0.0.1/8
|
||||
}
|
||||
rewrite /.well-known/openid-configuration {
|
||||
to /upstreams/konnect/{path}
|
||||
}
|
||||
rewrite /konnect/v1/ {
|
||||
to /upstreams/konnect/{path}
|
||||
}
|
||||
rewrite /signin/v1/ {
|
||||
to /upstreams/konnect/{path}
|
||||
}
|
||||
redir /signin /signin/v1/identifier
|
||||
|
||||
# Kapi
|
||||
proxy /upstreams/kapi/ {
|
||||
without /upstreams/kapi/
|
||||
upstream kopano_kapi:8039
|
||||
policy least_conn
|
||||
health_check /health-check
|
||||
fail_timeout 10s
|
||||
try_duration 30s
|
||||
keepalive 100
|
||||
transparent
|
||||
websocket
|
||||
}
|
||||
ratelimit * 100 200 minute {
|
||||
/upstreams/kapi/api/
|
||||
whitelist 127.0.0.1/8
|
||||
}
|
||||
rewrite /api/gc/v1/ {
|
||||
to /upstreams/kapi/{path}
|
||||
}
|
||||
rewrite /api/pubs/v1/ {
|
||||
to /upstreams/kapi/{path}
|
||||
}
|
||||
rewrite /api/kvs/v1/ {
|
||||
to /upstreams/kapi/{path}
|
||||
}
|
||||
# Kapi
|
||||
proxy /upstreams/kapi/ {
|
||||
without /upstreams/kapi/
|
||||
upstream kopano_kapi:8039
|
||||
policy least_conn
|
||||
health_check /health-check
|
||||
fail_timeout 10s
|
||||
try_duration 30s
|
||||
keepalive 100
|
||||
transparent
|
||||
websocket
|
||||
}
|
||||
ratelimit * 100 200 minute {
|
||||
/upstreams/kapi/api/
|
||||
whitelist 127.0.0.1/8
|
||||
}
|
||||
rewrite /api/gc/v1/ {
|
||||
to /upstreams/kapi/{path}
|
||||
}
|
||||
rewrite /api/pubs/v1/ {
|
||||
to /upstreams/kapi/{path}
|
||||
}
|
||||
rewrite /api/kvs/v1/ {
|
||||
to /upstreams/kapi/{path}
|
||||
}
|
||||
|
||||
# playground for oidc
|
||||
proxy /oidc-playground/ http://kopano_playground:8888/ {
|
||||
fail_timeout 10s
|
||||
try_duration 30s
|
||||
transparent
|
||||
keepalive 100
|
||||
}
|
||||
folderish /oidc-playground
|
||||
# playground for oidc
|
||||
proxy /oidc-playground/ http://kopano_playground:8888/ {
|
||||
fail_timeout 10s
|
||||
try_duration 30s
|
||||
transparent
|
||||
keepalive 100
|
||||
}
|
||||
folderish /oidc-playground
|
||||
|
||||
# playground for Kapi
|
||||
proxy /kapi-playground/ http://kopano_playground:8888/ {
|
||||
fail_timeout 10s
|
||||
try_duration 30s
|
||||
transparent
|
||||
keepalive 100
|
||||
}
|
||||
folderish /kapi-playground
|
||||
# playground for Kapi
|
||||
proxy /kapi-playground/ http://kopano_playground:8888/ {
|
||||
fail_timeout 10s
|
||||
try_duration 30s
|
||||
transparent
|
||||
keepalive 100
|
||||
}
|
||||
folderish /kapi-playground
|
||||
|
||||
|
||||
# Kwmserver
|
||||
proxy /upstreams/kwmserver/ {
|
||||
without /upstreams/kwmserver/
|
||||
upstream kopano_kwmserver:8778
|
||||
policy least_conn
|
||||
health_check /health-check
|
||||
fail_timeout 10s
|
||||
try_duration 30s
|
||||
keepalive 100
|
||||
transparent
|
||||
websocket
|
||||
}
|
||||
ratelimit * 100 200 minute {
|
||||
/upstreams/kwmserver/
|
||||
whitelist 127.0.0.1/8
|
||||
}
|
||||
rewrite /api/kwm/v2/ {
|
||||
to /upstreams/kwmserver/{path}
|
||||
}
|
||||
# Kwmserver
|
||||
proxy /upstreams/kwmserver/ {
|
||||
without /upstreams/kwmserver/
|
||||
upstream kopano_kwmserver:8778
|
||||
policy least_conn
|
||||
health_check /health-check
|
||||
fail_timeout 10s
|
||||
try_duration 30s
|
||||
keepalive 100
|
||||
transparent
|
||||
websocket
|
||||
}
|
||||
ratelimit * 100 200 minute {
|
||||
/upstreams/kwmserver/
|
||||
whitelist 127.0.0.1/8
|
||||
}
|
||||
rewrite /api/kwm/v2/ {
|
||||
to /upstreams/kwmserver/{path}
|
||||
}
|
||||
|
||||
proxy /meet/ kopano_meet:9080 {
|
||||
fail_timeout 10s
|
||||
try_duration 30s
|
||||
transparent
|
||||
keepalive 100
|
||||
}
|
||||
folderish /meet
|
||||
proxy /meet/ kopano_meet:9080 {
|
||||
fail_timeout 10s
|
||||
try_duration 30s
|
||||
transparent
|
||||
keepalive 100
|
||||
}
|
||||
folderish /meet
|
||||
|
||||
proxy /webapp/ kopano_webapp:9080 {
|
||||
fail_timeout 10s
|
||||
try_duration 30s
|
||||
transparent
|
||||
keepalive 100
|
||||
}
|
||||
folderish /webapp
|
||||
proxy /webapp/ kopano_webapp:9080 {
|
||||
fail_timeout 10s
|
||||
try_duration 30s
|
||||
transparent
|
||||
keepalive 100
|
||||
}
|
||||
folderish /webapp
|
||||
|
||||
proxy /Microsoft-Server-ActiveSync kopano_zpush:80 {
|
||||
transparent
|
||||
keepalive 0
|
||||
timeout 3540s
|
||||
}
|
||||
proxy /Microsoft-Server-ActiveSync kopano_zpush:80 {
|
||||
transparent
|
||||
keepalive 0
|
||||
timeout 3540s
|
||||
}
|
||||
|
||||
proxy /AutoDiscover/AutoDiscover.xml kopano_zpush:80 {
|
||||
transparent
|
||||
keepalive 0
|
||||
fail_timeout 10s
|
||||
try_duration 30s
|
||||
}
|
||||
proxy /AutoDiscover/AutoDiscover.xml kopano_zpush:80 {
|
||||
transparent
|
||||
keepalive 0
|
||||
fail_timeout 10s
|
||||
try_duration 30s
|
||||
}
|
||||
|
||||
proxy /Autodiscover/Autodiscover.xml kopano_zpush:80 {
|
||||
transparent
|
||||
keepalive 0
|
||||
fail_timeout 10s
|
||||
try_duration 30s
|
||||
}
|
||||
proxy /Autodiscover/Autodiscover.xml kopano_zpush:80 {
|
||||
transparent
|
||||
keepalive 0
|
||||
fail_timeout 10s
|
||||
try_duration 30s
|
||||
}
|
||||
|
||||
proxy /autodiscover/autodiscover.xml kopano_zpush:80 {
|
||||
transparent
|
||||
keepalive 0
|
||||
fail_timeout 10s
|
||||
try_duration 30s
|
||||
}
|
||||
proxy /autodiscover/autodiscover.xml kopano_zpush:80 {
|
||||
transparent
|
||||
keepalive 0
|
||||
fail_timeout 10s
|
||||
try_duration 30s
|
||||
}
|
||||
|
||||
proxy /caldav/ kopano_ical:8080 {
|
||||
fail_timeout 10s
|
||||
try_duration 30s
|
||||
transparent
|
||||
}
|
||||
folderish /caldav
|
||||
proxy /caldav/ kopano_ical:8080 {
|
||||
fail_timeout 10s
|
||||
try_duration 30s
|
||||
transparent
|
||||
}
|
||||
folderish /caldav
|
||||
|
||||
proxy /kdav/ kopano_kdav:80 {
|
||||
transparent
|
||||
keepalive 0
|
||||
fail_timeout 10s
|
||||
try_duration 30s
|
||||
}
|
||||
proxy /kdav/ kopano_kdav:80 {
|
||||
transparent
|
||||
keepalive 0
|
||||
fail_timeout 10s
|
||||
try_duration 30s
|
||||
}
|
||||
|
||||
redir 301 {
|
||||
/.well-known/carddav /kdav/
|
||||
/.well-known/caldav /kdav/
|
||||
}
|
||||
redir 301 {
|
||||
/.well-known/carddav /kdav/
|
||||
/.well-known/caldav /kdav/
|
||||
}
|
||||
|
||||
proxy /ldap-admin/ ldap-admin:80 {
|
||||
without /ldap-admin
|
||||
transparent
|
||||
}
|
||||
redir /ldap-admin /ldap-admin/
|
||||
proxy /ldap-admin/ ldap-admin:80 {
|
||||
without /ldap-admin
|
||||
transparent
|
||||
}
|
||||
redir /ldap-admin /ldap-admin/
|
||||
|
||||
proxy /password-reset/ password-self-service:80 {
|
||||
without /password-reset
|
||||
transparent
|
||||
}
|
||||
redir /password-reset /password-reset/
|
||||
proxy /password-reset/ password-self-service:80 {
|
||||
without /password-reset
|
||||
transparent
|
||||
}
|
||||
redir /password-reset /password-reset/
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user