Traefik: move to toml configuration and common middlewares
Also fixed nextcloud DAV resolution
This commit is contained in:
parent
8427208a2a
commit
02f546deb5
12 changed files with 20 additions and 31 deletions
|
@ -26,12 +26,12 @@ services:
|
|||
|
||||
- "traefik.http.routers.nextcloud-redirect.entrypoints=http"
|
||||
- "traefik.http.routers.nextcloud-redirect.rule=Host(`cloud.korhonen.cc`)"
|
||||
- "traefik.http.middlewares.http2https.redirectscheme.scheme=https"
|
||||
- "traefik.http.routers.nextcloud-redirect.middlewares=http2https"
|
||||
- "traefik.http.routers.nextcloud-redirect.middlewares=http2https@file"
|
||||
|
||||
- "traefik.http.routers.nextcloud.entrypoints=https"
|
||||
- "traefik.http.routers.nextcloud.rule=Host(`cloud.korhonen.cc`)"
|
||||
- "traefik.http.routers.nextcloud.service=nextcloud"
|
||||
- "traefik.http.routers.nextcloud.middlewares=secHeaders@file,nextcloud-dav@file"
|
||||
- "traefik.docker.network=proxy"
|
||||
- "traefik.http.services.nextcloud.loadbalancer.server.port=80"
|
||||
|
||||
|
@ -45,7 +45,7 @@ services:
|
|||
|
||||
cron:
|
||||
image: nextcloud:apache
|
||||
container_name: cron
|
||||
container_name: nextcloud-cron
|
||||
restart: always
|
||||
volumes:
|
||||
- /docker/nextcloud:/var/www/html
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue