Skip to content

Commit 50254df

Browse files
align variable names in docker compose yml and environment
1 parent 95c0373 commit 50254df

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

config/opencloud/csp.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ directives:
44
connect-src:
55
- '''self'''
66
- 'blob:'
7-
- 'https://${COMPANION_DOMAIN|companion.opencloud.test}${TRAEFIK_EXTERNAL_PORT}/'
8-
- 'wss://${COMPANION_DOMAIN|companion.opencloud.test}${TRAEFIK_EXTERNAL_PORT}/'
7+
- 'https://${COMPANION_DOMAIN|companion.opencloud.test}${TRAEFIK_PORT_HTTPS}/'
8+
- 'wss://${COMPANION_DOMAIN|companion.opencloud.test}${TRAEFIK_PORT_HTTPS}/'
99
- 'https://raw.githubusercontent.com/opencloud-eu/awesome-apps/'
10-
- 'https://${IDP_DOMAIN|keycloak.opencloud.test}${TRAEFIK_EXTERNAL_PORT}/'
10+
- 'https://${IDP_DOMAIN|keycloak.opencloud.test}${TRAEFIK_PORT_HTTPS}/'
1111
- 'https://update.opencloud.eu/'
1212
default-src:
1313
- '''none'''
@@ -20,7 +20,7 @@ directives:
2020
- 'blob:'
2121
- 'https://embed.diagrams.net/'
2222
# In contrary to bash and docker the default is given after the | character
23-
- 'https://${COLLABORA_DOMAIN|collabora.opencloud.test}${TRAEFIK_EXTERNAL_PORT}/'
23+
- 'https://${COLLABORA_DOMAIN|collabora.opencloud.test}${TRAEFIK_PORT_HTTPS}/'
2424
# This is needed for the external-sites web extension when embedding sites
2525
- 'https://docs.opencloud.eu'
2626
img-src:
@@ -30,7 +30,7 @@ directives:
3030
- 'https://raw.githubusercontent.com/opencloud-eu/awesome-apps/'
3131
- 'https://tile.openstreetmap.org/'
3232
# In contrary to bash and docker the default is given after the | character
33-
- 'https://${COLLABORA_DOMAIN|collabora.opencloud.test}${TRAEFIK_EXTERNAL_PORT}/'
33+
- 'https://${COLLABORA_DOMAIN|collabora.opencloud.test}${TRAEFIK_PORT_HTTPS}/'
3434
manifest-src:
3535
- '''self'''
3636
media-src:
@@ -41,7 +41,7 @@ directives:
4141
script-src:
4242
- '''self'''
4343
- '''unsafe-inline'''
44-
- 'https://${IDP_DOMAIN|keycloak.opencloud.test}${TRAEFIK_EXTERNAL_PORT}/'
44+
- 'https://${IDP_DOMAIN|keycloak.opencloud.test}${TRAEFIK_PORT_HTTPS}/'
4545
style-src:
4646
- '''self'''
4747
- '''unsafe-inline'''

config/traefik/docker-entrypoint-override.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ add_arg "--log.level=${TRAEFIK_LOG_LEVEL:-ERROR}"
1414
# enable dashboard
1515
add_arg "--api.dashboard=true"
1616
# define entrypoints
17-
add_arg "--entryPoints.http.address=:${TRAEFIK_HTTP_PORT:-80}"
17+
add_arg "--entryPoints.http.address=:${TRAEFIK_PORT_HTTP:-80}"
1818
add_arg "--entryPoints.http.http.redirections.entryPoint.to=https"
1919
add_arg "--entryPoints.http.http.redirections.entryPoint.scheme=https"
20-
add_arg "--entryPoints.https.address=:${TRAEFIK_HTTPS_PORT:-443}"
20+
add_arg "--entryPoints.https.address=:${TRAEFIK_PORT_HTTPS:-443}"
2121
# change default timeouts for long-running requests
2222
# this is needed for webdav clients that do not support the TUS protocol
2323
add_arg "--entryPoints.https.transport.respondingTimeouts.readTimeout=12h"

traefik/opencloud.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ services:
2323
- "TRAEFIK_ACME_CASERVER=${TRAEFIK_ACME_CASERVER:-https://acme-v02.api.letsencrypt.org/directory}"
2424
- "TRAEFIK_LOG_LEVEL=${TRAEFIK_LOG_LEVEL:-ERROR}"
2525
- "TRAEFIK_ACCESS_LOG=${TRAEFIK_ACCESS_LOG:-false}"
26-
- "TRAEFIK_HTTP_PORT=${TRAEFIK_PORT_HTTP:-80}"
27-
- "TRAEFIK_HTTPS_PORT=${TRAEFIK_PORT_HTTPS:-443}"
26+
- "TRAEFIK_PORT_HTTP=${TRAEFIK_PORT_HTTP:-80}"
27+
- "TRAEFIK_PORT_HTTPS=${TRAEFIK_PORT_HTTPS:-443}"
2828
ports:
2929
- "${TRAEFIK_PORT_HTTP:-80}:${TRAEFIK_PORT_HTTP:-80}"
3030
- "${TRAEFIK_PORT_HTTPS:-443}:${TRAEFIK_PORT_HTTPS:-443}"

weboffice/collabora.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services:
55
environment:
66
# this is needed for setting the correct CSP header
77
COLLABORA_DOMAIN: ${COLLABORA_DOMAIN:-collabora.opencloud.test}
8-
TRAEFIK_EXTERNAL_PORT: ${TRAEFIK_PORT_HTTPS:+:}${TRAEFIK_PORT_HTTPS:-}
8+
TRAEFIK_PORT_HTTPS: ${TRAEFIK_PORT_HTTPS:+:}${TRAEFIK_PORT_HTTPS:-}
99
# expose nats and the reva gateway for the collaboration service
1010
NATS_NATS_HOST: 0.0.0.0
1111
GATEWAY_GRPC_ADDR: 0.0.0.0:9142

0 commit comments

Comments
 (0)