i have been trying for days to upgrade from NC 15 to NC 17 (by way of a fresh install via docker), and i cannot for the life of me get rid of the reverse proxy warning. i’ve tried following every tutorial and support post i can find, and nothing has worked.
can someone take a look at my docker-compose and traefik config files and tell me if something is obviously wrong here? and/or what i’m supposed to put in the nextcloud config to make this work? i’ve already tried the traefik IP as well as many others (i’ve literally been trying for days and have lost track at this point of what i’ve tried, but nothing has worked)…
i also messed around with the source code inside the NC container (to echo phpinfo), and have verified that the external ip is in fact getting through from traefik (at least outside my home network, from inside it’s showing my router IP), so that doesn’t seem to be the issue. nextcloud just isn’t using it for some reason.
version: '3'
services:
nextcloud_db:
image: mariadb
container_name: nextcloud_db
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
restart: always
volumes:
- db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=xxx
env_file:
- db.env
networks:
- nextcloud
nextcloud:
image: nextcloud:17-apache
container_name: nextcloud
restart: always
volumes:
- /home/crackers8199/nextcloud/config:/var/www/html/config
labels:
- "traefik.frontend.rule=Host:nextcloud.mydomain.com"
- "traefik.frontend.entryPoints=https"
- "traefik.frontend.whiteList.useXForwardedFor=true"
- "traefik.frontend.passHostHeader=true"
depends_on:
- nextcloud_db
networks:
- nextcloud
traefik:
image: traefik:1.7 # The official Traefik docker image
container_name: traefik
command: --docker
environment:
- DO_AUTH_TOKEN=xxx
ports:
- "80:80" # The HTTP port
- "443:443" # https
volumes:
- /var/run/docker.sock:/var/run/docker.sock # So that Traefik can listen to the Docker events
- /home/crackers8199/traefik/traefik.toml:/etc/traefik/traefik.toml
- /home/crackers8199/traefik/acme/acme.json:/acme.json
networks:
- nextcloud
volumes:
db:
networks:
nextcloud:
defaultEntryPoints = ["http", "https"]
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.http.redirect]
entryPoint = "https"
[entryPoints.https]
address = ":443"
[entryPoints.https.tls]
[docker]
[acme]
email = "xxx@xxx.com"
storage = "acme.json"
entryPoint = "https"
onHostRule = true
onDemand = false
[acme.dnsChallenge]
provider = "digitalocean"
delayBeforeCheck = 0