mirror of
https://github.com/opencloud-eu/opencloud-compose.git
synced 2026-06-08 20:20:04 +08:00
@@ -3,9 +3,16 @@ services:
|
||||
opencloud:
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
# define middleware here, to make sure its loaded with the first defined container (opencloud)
|
||||
# if defined in the traefik container with a disabled dashboard it won't be loaded fast enough
|
||||
- "traefik.http.middlewares.hsts-header.headers.stsSeconds=31536000"
|
||||
- "traefik.http.middlewares.hsts-header.headers.stsIncludeSubdomains=true"
|
||||
- "traefik.http.middlewares.hsts-header.headers.stsPreload=true"
|
||||
- "traefik.http.middlewares.hsts-header.headers.forceSTSHeader=true"
|
||||
- "traefik.http.routers.opencloud.entrypoints=https"
|
||||
- "traefik.http.routers.opencloud.rule=Host(`${OC_DOMAIN:-cloud.opencloud.test}`)"
|
||||
- "traefik.http.routers.opencloud.service=opencloud"
|
||||
- "traefik.http.routers.opencloud.middlewares=hsts-header"
|
||||
- "traefik.http.services.opencloud.loadbalancer.server.port=9200"
|
||||
- "traefik.http.routers.opencloud.${TRAEFIK_SERVICES_TLS_CONFIG}"
|
||||
traefik:
|
||||
|
||||
Reference in New Issue
Block a user