-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Description
I am running SSL Reverse Proxy (Traefik) in from of Nextcloud, but static content on context /core/ is loaded over http (mixed-content errors), other content is loaded OK.
I am aware of this https://docs.nextcloud.com/server/15/admin_manual/configuration_server/reverse_proxy_configuration.html#overwrite-parameters
,but there should be option in https://github.com/nextcloud/docker/blob/master/docker-entrypoint.sh to enable reverse proxy support.
I dont want to precreate file and volume for enabling SSL Reverse Proxy support.
Will be revamped #527 accepted?
Run
docker run -d \
--name nextcloud \
--network mynetwork \
--restart=unless-stopped \
--label "traefik.enable=true" \
--label "traefik.basic.frontend.rule=Host:nextcloud.example.com" \
--label "traefik.basic.port=80" \
--label "traefik.frontend.redirect.permanent=true" \
--label "traefik.frontend.redirect.regex=https://(.*)/.well-known/(card|cal)dav" \
--label "traefik.frontend.redirect.replacement=https://$$1/remote.php/dav/" \
-e POSTGRES_DB=nextcloud \
-e POSTGRES_HOST=nextcloud-postgres \
-e POSTGRES_PASSWORD=nextcloud \
-e POSTGRES_USER=postgres \
-e NEXTCLOUD_ADMIN_PASSWORD=admin \
-e NEXTCLOUD_ADMIN_USER=admin \
-e REDIS_HOST=nextcloud-redis \
-e NEXTCLOUD_TRUSTED_DOMAINS=nextcloud.example.com \
nextcloud:latest
Workaround
docker exec -it -u www-data nextcloud bash -c './occ config:system:set overwriteprotocol --
value="https"'
FelixSchwarz, kosssi and mr-bolle
Metadata
Metadata
Assignees
Labels
No labels