Skip to content

Commit 79a0fe0

Browse files
committed
devtools: use http2 for backend connection
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
1 parent b19307f commit 79a0fe0

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

devtools/deployments/opencloud_full/docker-compose.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ services:
1919
- "--entryPoints.http.http.redirections.entryPoint.to=https"
2020
- "--entryPoints.http.http.redirections.entryPoint.scheme=https"
2121
- "--entryPoints.https.address=:443"
22+
# http2 optimizations
23+
- "--entryPoints.https.http2.maxConcurrentStreams=512"
24+
- "--serversTransport.maxIdleConnsPerHost=100"
25+
# allow self signed certificate from OpenCloud
26+
- "--serversTransport.insecureSkipVerify=true"
2227
# change default timeouts for long-running requests
2328
# this is needed for webdav clients that do not support the TUS protocol
2429
- "--entryPoints.https.transport.respondingTimeouts.readTimeout=12h"

devtools/deployments/opencloud_full/opencloud.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ services:
2525
OC_LOG_COLOR: "${LOG_PRETTY:-false}"
2626
OC_LOG_PRETTY: "${LOG_PRETTY:-false}"
2727
# do not use SSL between Traefik and OpenCloud
28-
PROXY_TLS: "false"
28+
PROXY_TLS: "true"
2929
# make the REVA gateway accessible to the app drivers
3030
GATEWAY_GRPC_ADDR: 0.0.0.0:9142
3131
# INSECURE: needed if OpenCloud / Traefik is using self generated certificates
@@ -72,6 +72,7 @@ services:
7272
- "traefik.http.routers.opencloud.tls.certresolver=http"
7373
- "traefik.http.routers.opencloud.service=opencloud"
7474
- "traefik.http.services.opencloud.loadbalancer.server.port=9200"
75+
- "traefik.http.services.opencloud.loadbalancer.server.scheme=https"
7576
logging:
7677
driver: ${LOG_DRIVER:-local}
7778
restart: always

0 commit comments

Comments
 (0)