Merge branch 'app/nextcloud/improve-proxy' of https://github.com/sethforprivacy/runtipi-appstore into sethforprivacy-app/nextcloud/improve-proxy

This commit is contained in:
Nicolas Meienberger 2022-09-10 12:53:08 +02:00
commit d5fd97ec19
2 changed files with 16 additions and 2 deletions

View File

@ -5,7 +5,7 @@
"exposable": true,
"port": 8083,
"id": "nextcloud",
"tipi_version": 2,
"tipi_version": 3,
"version": "24.0.4",
"categories": ["data"],
"description": "Nextcloud is a self-hosted, open source, and fully-featured cloud storage solution for your personal files, office documents, and photos.",

View File

@ -53,6 +53,9 @@ services:
- NEXTCLOUD_ADMIN_USER=${NEXTCLOUD_ADMIN_USER}
- NEXTCLOUD_ADMIN_PASSWORD=${NEXTCLOUD_ADMIN_PASSWORD}
- NEXTCLOUD_TRUSTED_DOMAINS=${INTERNAL_IP}:${APP_PORT} ${APP_DOMAIN}
- TRUSTED_PROXIES=172.16.0.0/12
- OVERWRITEHOST=${APP_DOMAIN}
- OVERWRITEPROTOCOL=${APP_PROTOCOL:-http}
depends_on:
- db-nextcloud
- redis-nextcloud
@ -65,4 +68,15 @@ services:
traefik.http.routers.nextcloud.service: nextcloud
traefik.http.routers.nextcloud.tls.certresolver: myresolver
traefik.http.services.nextcloud.loadbalancer.server.port: 80
traefik.http.middlewares.nextcloud.headers.browserXSSFilter: true
traefik.http.middlewares.nextcloud.headers.contentTypeNosniff: true
traefik.http.middlewares.nextcloud.headers.stsIncludeSubdomains: true
traefik.http.middlewares.nextcloud.headers.stsPreload: true
traefik.http.middlewares.nextcloud.headers.stsSeconds: 155520011
traefik.http.middlewares.nextcloud_redirect.redirectregex.permanent: true
traefik.http.middlewares.nextcloud_redirect.redirectregex.regex: https://(.*)/.well-known/(card|cal)dav
traefik.http.middlewares.nextcloud_redirect.redirectregex.replacement: https://$${1}/remote.php/dav/
traefik.http.routers.nextcloud.middlewares: nextcloud,nextcloud_redirect,nextcloud-https
traefik.http.middlewares.nextcloud.headers.customRequestHeaders.X-Forwarded-Proto: https
traefik.http.middlewares.nextcloud-https.redirectscheme.scheme: https
traefik.http.routers.nextcloud-http.middlewares: nextcloud-https@docker