From ba14b78f587e796998a2e6df8768503459ccf03e Mon Sep 17 00:00:00 2001 From: chillymattster <106633144+chillymattster@users.noreply.github.com> Date: Fri, 14 Nov 2025 10:26:09 +0100 Subject: [PATCH 1/3] feat: port configuration --- .env.example | 4 ++++ config/opencloud/csp.yaml | 12 ++++++------ config/traefik/docker-entrypoint-override.sh | 4 ++-- docker-compose.yml | 2 +- traefik/opencloud.yml | 6 ++++-- weboffice/collabora.yml | 15 ++++++++------- 6 files changed, 25 insertions(+), 18 deletions(-) diff --git a/.env.example b/.env.example index 7a0e1f5..5c5ad9a 100644 --- a/.env.example +++ b/.env.example @@ -66,6 +66,10 @@ TRAEFIK_ACCESS_LOG= # Configure the log level for Traefik. # Possible values are "TRACE", "DEBUG", "INFO", "WARN", "ERROR", "FATAL" and "PANIC". Default is "ERROR". TRAEFIK_LOG_LEVEL= +# Configure ports for HTTP and HTTPS when necessary, defaults are 80 and 443 +# Don't use ports in the range of 8000-9999 and 5232 as those ports are used internally and therefore might create conflicts. +#TRAEFIK_PORT_HTTP=4080 +#TRAEFIK_PORT_HTTPS=4443 ## OpenCloud Settings ## diff --git a/config/opencloud/csp.yaml b/config/opencloud/csp.yaml index 1616b5b..e8b9757 100644 --- a/config/opencloud/csp.yaml +++ b/config/opencloud/csp.yaml @@ -4,10 +4,10 @@ directives: connect-src: - '''self''' - 'blob:' - - 'https://${COMPANION_DOMAIN|companion.opencloud.test}/' - - 'wss://${COMPANION_DOMAIN|companion.opencloud.test}/' + - 'https://${COMPANION_DOMAIN|companion.opencloud.test}:${TRAEFIK_EXTERNAL_PORT|443}/' + - 'wss://${COMPANION_DOMAIN|companion.opencloud.test}:${TRAEFIK_EXTERNAL_PORT|443}/' - 'https://raw.githubusercontent.com/opencloud-eu/awesome-apps/' - - 'https://${IDP_DOMAIN|keycloak.opencloud.test}/' + - 'https://${IDP_DOMAIN|keycloak.opencloud.test}:${TRAEFIK_EXTERNAL_PORT|443}/' - 'https://update.opencloud.eu/' default-src: - '''none''' @@ -20,7 +20,7 @@ directives: - 'blob:' - 'https://embed.diagrams.net/' # In contrary to bash and docker the default is given after the | character - - 'https://${COLLABORA_DOMAIN|collabora.opencloud.test}/' + - 'https://${COLLABORA_DOMAIN|collabora.opencloud.test}:${TRAEFIK_EXTERNAL_PORT|443}/' # This is needed for the external-sites web extension when embedding sites - 'https://docs.opencloud.eu' img-src: @@ -30,7 +30,7 @@ directives: - 'https://raw.githubusercontent.com/opencloud-eu/awesome-apps/' - 'https://tile.openstreetmap.org/' # In contrary to bash and docker the default is given after the | character - - 'https://${COLLABORA_DOMAIN|collabora.opencloud.test}/' + - 'https://${COLLABORA_DOMAIN|collabora.opencloud.test}:${TRAEFIK_EXTERNAL_PORT|443}/' manifest-src: - '''self''' media-src: @@ -41,7 +41,7 @@ directives: script-src: - '''self''' - '''unsafe-inline''' - - 'https://${IDP_DOMAIN|keycloak.opencloud.test}/' + - 'https://${IDP_DOMAIN|keycloak.opencloud.test}:${TRAEFIK_EXTERNAL_PORT|443}/' style-src: - '''self''' - '''unsafe-inline''' diff --git a/config/traefik/docker-entrypoint-override.sh b/config/traefik/docker-entrypoint-override.sh index 456a62d..03e6b9e 100644 --- a/config/traefik/docker-entrypoint-override.sh +++ b/config/traefik/docker-entrypoint-override.sh @@ -14,10 +14,10 @@ add_arg "--log.level=${TRAEFIK_LOG_LEVEL:-ERROR}" # enable dashboard add_arg "--api.dashboard=true" # define entrypoints -add_arg "--entryPoints.http.address=:80" +add_arg "--entryPoints.http.address=:${TRAEFIK_HTTP_PORT:-80}" add_arg "--entryPoints.http.http.redirections.entryPoint.to=https" add_arg "--entryPoints.http.http.redirections.entryPoint.scheme=https" -add_arg "--entryPoints.https.address=:443" +add_arg "--entryPoints.https.address=:${TRAEFIK_HTTPS_PORT:-443}" # change default timeouts for long-running requests # this is needed for webdav clients that do not support the TUS protocol add_arg "--entryPoints.https.transport.respondingTimeouts.readTimeout=12h" diff --git a/docker-compose.yml b/docker-compose.yml index 48438ec..62546e3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,7 +15,7 @@ services: environment: # enable services that are not started automatically OC_ADD_RUN_SERVICES: ${START_ADDITIONAL_SERVICES} - OC_URL: https://${OC_DOMAIN:-cloud.opencloud.test} + OC_URL: https://${OC_DOMAIN:-cloud.opencloud.test}:${TRAEFIK_PORT_HTTPS:-443} OC_LOG_LEVEL: ${LOG_LEVEL:-info} OC_LOG_COLOR: "${LOG_PRETTY:-false}" OC_LOG_PRETTY: "${LOG_PRETTY:-false}" diff --git a/traefik/opencloud.yml b/traefik/opencloud.yml index 5117ab9..3e9efda 100644 --- a/traefik/opencloud.yml +++ b/traefik/opencloud.yml @@ -22,9 +22,11 @@ services: - "TRAEFIK_ACME_CASERVER=${TRAEFIK_ACME_CASERVER:-https://acme-v02.api.letsencrypt.org/directory}" - "TRAEFIK_LOG_LEVEL=${TRAEFIK_LOG_LEVEL:-ERROR}" - "TRAEFIK_ACCESS_LOG=${TRAEFIK_ACCESS_LOG:-false}" + - "TRAEFIK_HTTP_PORT=${TRAEFIK_PORT_HTTP:-80}" + - "TRAEFIK_HTTPS_PORT=${TRAEFIK_PORT_HTTPS:-443}" ports: - - "80:80" - - "443:443" + - "${TRAEFIK_PORT_HTTP:-80}:${TRAEFIK_PORT_HTTP:-80}" + - "${TRAEFIK_PORT_HTTPS:-443}:${TRAEFIK_PORT_HTTPS:-443}" volumes: - "${DOCKER_SOCKET_PATH:-/var/run/docker.sock}:/var/run/docker.sock:ro" - "./config/traefik/docker-entrypoint-override.sh:/opt/traefik/bin/docker-entrypoint-override.sh" diff --git a/weboffice/collabora.yml b/weboffice/collabora.yml index ed01590..58ff93f 100644 --- a/weboffice/collabora.yml +++ b/weboffice/collabora.yml @@ -5,6 +5,7 @@ services: environment: # this is needed for setting the correct CSP header COLLABORA_DOMAIN: ${COLLABORA_DOMAIN:-collabora.opencloud.test} + TRAEFIK_EXTERNAL_PORT: ${TRAEFIK_PORT_HTTPS:-443} # expose nats and the reva gateway for the collaboration service NATS_NATS_HOST: 0.0.0.0 GATEWAY_GRPC_ADDR: 0.0.0.0:9142 @@ -29,15 +30,15 @@ services: COLLABORATION_HTTP_ADDR: 0.0.0.0:9300 MICRO_REGISTRY: "nats-js-kv" MICRO_REGISTRY_ADDRESS: "opencloud:9233" - COLLABORATION_WOPI_SRC: https://${WOPISERVER_DOMAIN:-wopiserver.opencloud.test} + COLLABORATION_WOPI_SRC: https://${WOPISERVER_DOMAIN:-wopiserver.opencloud.test}:${TRAEFIK_PORT_HTTPS:-443} COLLABORATION_APP_NAME: "CollaboraOnline" COLLABORATION_APP_PRODUCT: "Collabora" - COLLABORATION_APP_ADDR: https://${COLLABORA_DOMAIN:-collabora.opencloud.test} - COLLABORATION_APP_ICON: https://${COLLABORA_DOMAIN:-collabora.opencloud.test}/favicon.ico + COLLABORATION_APP_ADDR: https://${COLLABORA_DOMAIN:-collabora.opencloud.test}:${TRAEFIK_PORT_HTTPS:-443} + COLLABORATION_APP_ICON: https://${COLLABORA_DOMAIN:-collabora.opencloud.test}:${TRAEFIK_PORT_HTTPS:-443}/favicon.ico COLLABORATION_APP_INSECURE: "${INSECURE:-true}" COLLABORATION_CS3API_DATAGATEWAY_INSECURE: "${INSECURE:-true}" COLLABORATION_LOG_LEVEL: ${LOG_LEVEL:-info} - OC_URL: https://${OC_DOMAIN:-cloud.opencloud.test} + OC_URL: https://${OC_DOMAIN:-cloud.opencloud.test}:${TRAEFIK_PORT_HTTPS:-443} volumes: # configure the .env file to use own paths instead of docker internal volumes - ${OC_CONFIG_DIR:-opencloud-config}:/etc/opencloud @@ -51,15 +52,15 @@ services: networks: opencloud-net: environment: - aliasgroup1: https://${WOPISERVER_DOMAIN:-wopiserver.opencloud.test}:443 + aliasgroup1: https://${WOPISERVER_DOMAIN:-wopiserver.opencloud.test}:${TRAEFIK_PORT_HTTPS:-443} DONT_GEN_SSL_CERT: "YES" extra_params: | --o:ssl.enable=${COLLABORA_SSL_ENABLE:-true} \ --o:ssl.ssl_verification=${COLLABORA_SSL_VERIFICATION:-true} \ --o:ssl.termination=true \ --o:welcome.enable=false \ - --o:net.frame_ancestors=${OC_DOMAIN:-cloud.opencloud.test} \ - --o:net.lok_allow.host[14]=${OC_DOMAIN-cloud.opencloud.test} \ + --o:net.frame_ancestors=${OC_DOMAIN:-cloud.opencloud.test}:${TRAEFIK_PORT_HTTPS:-443} \ + --o:net.lok_allow.host[14]=${OC_DOMAIN-cloud.opencloud.test}:${TRAEFIK_PORT_HTTPS:-443} \ --o:home_mode.enable=${COLLABORA_HOME_MODE:-false} username: ${COLLABORA_ADMIN_USER:-admin} password: ${COLLABORA_ADMIN_PASSWORD:-admin} From 900a05c2c04e114dec5fdfd37fae06cacc5591be Mon Sep 17 00:00:00 2001 From: chillymattster <106633144+chillymattster@users.noreply.github.com> Date: Fri, 14 Nov 2025 15:38:21 +0100 Subject: [PATCH 2/3] avoid enforcing visible default port at the end of urls --- config/opencloud/csp.yaml | 12 ++++++------ docker-compose.yml | 2 +- weboffice/collabora.yml | 16 ++++++++-------- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/config/opencloud/csp.yaml b/config/opencloud/csp.yaml index e8b9757..7709473 100644 --- a/config/opencloud/csp.yaml +++ b/config/opencloud/csp.yaml @@ -4,10 +4,10 @@ directives: connect-src: - '''self''' - 'blob:' - - 'https://${COMPANION_DOMAIN|companion.opencloud.test}:${TRAEFIK_EXTERNAL_PORT|443}/' - - 'wss://${COMPANION_DOMAIN|companion.opencloud.test}:${TRAEFIK_EXTERNAL_PORT|443}/' + - 'https://${COMPANION_DOMAIN|companion.opencloud.test}${TRAEFIK_EXTERNAL_PORT}/' + - 'wss://${COMPANION_DOMAIN|companion.opencloud.test}${TRAEFIK_EXTERNAL_PORT}/' - 'https://raw.githubusercontent.com/opencloud-eu/awesome-apps/' - - 'https://${IDP_DOMAIN|keycloak.opencloud.test}:${TRAEFIK_EXTERNAL_PORT|443}/' + - 'https://${IDP_DOMAIN|keycloak.opencloud.test}${TRAEFIK_EXTERNAL_PORT}/' - 'https://update.opencloud.eu/' default-src: - '''none''' @@ -20,7 +20,7 @@ directives: - 'blob:' - 'https://embed.diagrams.net/' # In contrary to bash and docker the default is given after the | character - - 'https://${COLLABORA_DOMAIN|collabora.opencloud.test}:${TRAEFIK_EXTERNAL_PORT|443}/' + - 'https://${COLLABORA_DOMAIN|collabora.opencloud.test}${TRAEFIK_EXTERNAL_PORT}/' # This is needed for the external-sites web extension when embedding sites - 'https://docs.opencloud.eu' img-src: @@ -30,7 +30,7 @@ directives: - 'https://raw.githubusercontent.com/opencloud-eu/awesome-apps/' - 'https://tile.openstreetmap.org/' # In contrary to bash and docker the default is given after the | character - - 'https://${COLLABORA_DOMAIN|collabora.opencloud.test}:${TRAEFIK_EXTERNAL_PORT|443}/' + - 'https://${COLLABORA_DOMAIN|collabora.opencloud.test}${TRAEFIK_EXTERNAL_PORT}/' manifest-src: - '''self''' media-src: @@ -41,7 +41,7 @@ directives: script-src: - '''self''' - '''unsafe-inline''' - - 'https://${IDP_DOMAIN|keycloak.opencloud.test}:${TRAEFIK_EXTERNAL_PORT|443}/' + - 'https://${IDP_DOMAIN|keycloak.opencloud.test}${TRAEFIK_EXTERNAL_PORT}/' style-src: - '''self''' - '''unsafe-inline''' diff --git a/docker-compose.yml b/docker-compose.yml index 62546e3..aa00fd2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,7 +15,7 @@ services: environment: # enable services that are not started automatically OC_ADD_RUN_SERVICES: ${START_ADDITIONAL_SERVICES} - OC_URL: https://${OC_DOMAIN:-cloud.opencloud.test}:${TRAEFIK_PORT_HTTPS:-443} + OC_URL: https://${OC_DOMAIN:-cloud.opencloud.test}${TRAEFIK_PORT_HTTPS:+:}${TRAEFIK_PORT_HTTPS:-} OC_LOG_LEVEL: ${LOG_LEVEL:-info} OC_LOG_COLOR: "${LOG_PRETTY:-false}" OC_LOG_PRETTY: "${LOG_PRETTY:-false}" diff --git a/weboffice/collabora.yml b/weboffice/collabora.yml index 58ff93f..d623860 100644 --- a/weboffice/collabora.yml +++ b/weboffice/collabora.yml @@ -5,7 +5,7 @@ services: environment: # this is needed for setting the correct CSP header COLLABORA_DOMAIN: ${COLLABORA_DOMAIN:-collabora.opencloud.test} - TRAEFIK_EXTERNAL_PORT: ${TRAEFIK_PORT_HTTPS:-443} + TRAEFIK_EXTERNAL_PORT: ${TRAEFIK_PORT_HTTPS:+:}${TRAEFIK_PORT_HTTPS:-} # expose nats and the reva gateway for the collaboration service NATS_NATS_HOST: 0.0.0.0 GATEWAY_GRPC_ADDR: 0.0.0.0:9142 @@ -30,15 +30,15 @@ services: COLLABORATION_HTTP_ADDR: 0.0.0.0:9300 MICRO_REGISTRY: "nats-js-kv" MICRO_REGISTRY_ADDRESS: "opencloud:9233" - COLLABORATION_WOPI_SRC: https://${WOPISERVER_DOMAIN:-wopiserver.opencloud.test}:${TRAEFIK_PORT_HTTPS:-443} + COLLABORATION_WOPI_SRC: https://${WOPISERVER_DOMAIN:-wopiserver.opencloud.test}${TRAEFIK_PORT_HTTPS:+:}${TRAEFIK_PORT_HTTPS:-} COLLABORATION_APP_NAME: "CollaboraOnline" COLLABORATION_APP_PRODUCT: "Collabora" - COLLABORATION_APP_ADDR: https://${COLLABORA_DOMAIN:-collabora.opencloud.test}:${TRAEFIK_PORT_HTTPS:-443} - COLLABORATION_APP_ICON: https://${COLLABORA_DOMAIN:-collabora.opencloud.test}:${TRAEFIK_PORT_HTTPS:-443}/favicon.ico + COLLABORATION_APP_ADDR: https://${COLLABORA_DOMAIN:-collabora.opencloud.test}${TRAEFIK_PORT_HTTPS:+:}${TRAEFIK_PORT_HTTPS:-} + COLLABORATION_APP_ICON: https://${COLLABORA_DOMAIN:-collabora.opencloud.test}${TRAEFIK_PORT_HTTPS:+:}${TRAEFIK_PORT_HTTPS:-}/favicon.ico COLLABORATION_APP_INSECURE: "${INSECURE:-true}" COLLABORATION_CS3API_DATAGATEWAY_INSECURE: "${INSECURE:-true}" COLLABORATION_LOG_LEVEL: ${LOG_LEVEL:-info} - OC_URL: https://${OC_DOMAIN:-cloud.opencloud.test}:${TRAEFIK_PORT_HTTPS:-443} + OC_URL: https://${OC_DOMAIN:-cloud.opencloud.test}${TRAEFIK_PORT_HTTPS:+:}${TRAEFIK_PORT_HTTPS:-} volumes: # configure the .env file to use own paths instead of docker internal volumes - ${OC_CONFIG_DIR:-opencloud-config}:/etc/opencloud @@ -52,15 +52,15 @@ services: networks: opencloud-net: environment: - aliasgroup1: https://${WOPISERVER_DOMAIN:-wopiserver.opencloud.test}:${TRAEFIK_PORT_HTTPS:-443} + aliasgroup1: https://${WOPISERVER_DOMAIN:-wopiserver.opencloud.test}${TRAEFIK_PORT_HTTPS:+:}${TRAEFIK_PORT_HTTPS:-} DONT_GEN_SSL_CERT: "YES" extra_params: | --o:ssl.enable=${COLLABORA_SSL_ENABLE:-true} \ --o:ssl.ssl_verification=${COLLABORA_SSL_VERIFICATION:-true} \ --o:ssl.termination=true \ --o:welcome.enable=false \ - --o:net.frame_ancestors=${OC_DOMAIN:-cloud.opencloud.test}:${TRAEFIK_PORT_HTTPS:-443} \ - --o:net.lok_allow.host[14]=${OC_DOMAIN-cloud.opencloud.test}:${TRAEFIK_PORT_HTTPS:-443} \ + --o:net.frame_ancestors=${OC_DOMAIN:-cloud.opencloud.test}${TRAEFIK_PORT_HTTPS:+:}${TRAEFIK_PORT_HTTPS:-} \ + --o:net.lok_allow.host[14]=${OC_DOMAIN-cloud.opencloud.test}${TRAEFIK_PORT_HTTPS:+:}${TRAEFIK_PORT_HTTPS:-} \ --o:home_mode.enable=${COLLABORA_HOME_MODE:-false} username: ${COLLABORA_ADMIN_USER:-admin} password: ${COLLABORA_ADMIN_PASSWORD:-admin} From 50254df2ab7e38d80e1e979900d753633cbdde4b Mon Sep 17 00:00:00 2001 From: chillymattster <106633144+chillymattster@users.noreply.github.com> Date: Wed, 26 Nov 2025 19:11:37 +0100 Subject: [PATCH 3/3] align variable names in docker compose yml and environment --- config/opencloud/csp.yaml | 12 ++++++------ config/traefik/docker-entrypoint-override.sh | 4 ++-- traefik/opencloud.yml | 4 ++-- weboffice/collabora.yml | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/config/opencloud/csp.yaml b/config/opencloud/csp.yaml index 7709473..cde4b1e 100644 --- a/config/opencloud/csp.yaml +++ b/config/opencloud/csp.yaml @@ -4,10 +4,10 @@ directives: connect-src: - '''self''' - 'blob:' - - 'https://${COMPANION_DOMAIN|companion.opencloud.test}${TRAEFIK_EXTERNAL_PORT}/' - - 'wss://${COMPANION_DOMAIN|companion.opencloud.test}${TRAEFIK_EXTERNAL_PORT}/' + - 'https://${COMPANION_DOMAIN|companion.opencloud.test}${TRAEFIK_PORT_HTTPS}/' + - 'wss://${COMPANION_DOMAIN|companion.opencloud.test}${TRAEFIK_PORT_HTTPS}/' - 'https://raw.githubusercontent.com/opencloud-eu/awesome-apps/' - - 'https://${IDP_DOMAIN|keycloak.opencloud.test}${TRAEFIK_EXTERNAL_PORT}/' + - 'https://${IDP_DOMAIN|keycloak.opencloud.test}${TRAEFIK_PORT_HTTPS}/' - 'https://update.opencloud.eu/' default-src: - '''none''' @@ -20,7 +20,7 @@ directives: - 'blob:' - 'https://embed.diagrams.net/' # In contrary to bash and docker the default is given after the | character - - 'https://${COLLABORA_DOMAIN|collabora.opencloud.test}${TRAEFIK_EXTERNAL_PORT}/' + - 'https://${COLLABORA_DOMAIN|collabora.opencloud.test}${TRAEFIK_PORT_HTTPS}/' # This is needed for the external-sites web extension when embedding sites - 'https://docs.opencloud.eu' img-src: @@ -30,7 +30,7 @@ directives: - 'https://raw.githubusercontent.com/opencloud-eu/awesome-apps/' - 'https://tile.openstreetmap.org/' # In contrary to bash and docker the default is given after the | character - - 'https://${COLLABORA_DOMAIN|collabora.opencloud.test}${TRAEFIK_EXTERNAL_PORT}/' + - 'https://${COLLABORA_DOMAIN|collabora.opencloud.test}${TRAEFIK_PORT_HTTPS}/' manifest-src: - '''self''' media-src: @@ -41,7 +41,7 @@ directives: script-src: - '''self''' - '''unsafe-inline''' - - 'https://${IDP_DOMAIN|keycloak.opencloud.test}${TRAEFIK_EXTERNAL_PORT}/' + - 'https://${IDP_DOMAIN|keycloak.opencloud.test}${TRAEFIK_PORT_HTTPS}/' style-src: - '''self''' - '''unsafe-inline''' diff --git a/config/traefik/docker-entrypoint-override.sh b/config/traefik/docker-entrypoint-override.sh index 03e6b9e..6b2e49e 100644 --- a/config/traefik/docker-entrypoint-override.sh +++ b/config/traefik/docker-entrypoint-override.sh @@ -14,10 +14,10 @@ add_arg "--log.level=${TRAEFIK_LOG_LEVEL:-ERROR}" # enable dashboard add_arg "--api.dashboard=true" # define entrypoints -add_arg "--entryPoints.http.address=:${TRAEFIK_HTTP_PORT:-80}" +add_arg "--entryPoints.http.address=:${TRAEFIK_PORT_HTTP:-80}" add_arg "--entryPoints.http.http.redirections.entryPoint.to=https" add_arg "--entryPoints.http.http.redirections.entryPoint.scheme=https" -add_arg "--entryPoints.https.address=:${TRAEFIK_HTTPS_PORT:-443}" +add_arg "--entryPoints.https.address=:${TRAEFIK_PORT_HTTPS:-443}" # change default timeouts for long-running requests # this is needed for webdav clients that do not support the TUS protocol add_arg "--entryPoints.https.transport.respondingTimeouts.readTimeout=12h" diff --git a/traefik/opencloud.yml b/traefik/opencloud.yml index 16b5997..2f39ae0 100644 --- a/traefik/opencloud.yml +++ b/traefik/opencloud.yml @@ -23,8 +23,8 @@ services: - "TRAEFIK_ACME_CASERVER=${TRAEFIK_ACME_CASERVER:-https://acme-v02.api.letsencrypt.org/directory}" - "TRAEFIK_LOG_LEVEL=${TRAEFIK_LOG_LEVEL:-ERROR}" - "TRAEFIK_ACCESS_LOG=${TRAEFIK_ACCESS_LOG:-false}" - - "TRAEFIK_HTTP_PORT=${TRAEFIK_PORT_HTTP:-80}" - - "TRAEFIK_HTTPS_PORT=${TRAEFIK_PORT_HTTPS:-443}" + - "TRAEFIK_PORT_HTTP=${TRAEFIK_PORT_HTTP:-80}" + - "TRAEFIK_PORT_HTTPS=${TRAEFIK_PORT_HTTPS:-443}" ports: - "${TRAEFIK_PORT_HTTP:-80}:${TRAEFIK_PORT_HTTP:-80}" - "${TRAEFIK_PORT_HTTPS:-443}:${TRAEFIK_PORT_HTTPS:-443}" diff --git a/weboffice/collabora.yml b/weboffice/collabora.yml index b702a60..ce6e9bd 100644 --- a/weboffice/collabora.yml +++ b/weboffice/collabora.yml @@ -5,7 +5,7 @@ services: environment: # this is needed for setting the correct CSP header COLLABORA_DOMAIN: ${COLLABORA_DOMAIN:-collabora.opencloud.test} - TRAEFIK_EXTERNAL_PORT: ${TRAEFIK_PORT_HTTPS:+:}${TRAEFIK_PORT_HTTPS:-} + TRAEFIK_PORT_HTTPS: ${TRAEFIK_PORT_HTTPS:+:}${TRAEFIK_PORT_HTTPS:-} # expose nats and the reva gateway for the collaboration service NATS_NATS_HOST: 0.0.0.0 GATEWAY_GRPC_ADDR: 0.0.0.0:9142