From dfb8c1cc8b0ee80d1b9da5f48b29750c3a37ca65 Mon Sep 17 00:00:00 2001 From: Alex Pedersen Date: Mon, 12 Jul 2021 10:04:23 +0200 Subject: [PATCH] added new env variables to fix bug added new environment variables to the nextcloud stack config for overwriting domain and HTTP protocol. This fixes an error that occurs when hitting "grant access" in the sign-up flow that causes a connection loop instead of connecting. --- containers/stacks/cloud/dist.docker-compose.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/containers/stacks/cloud/dist.docker-compose.yml b/containers/stacks/cloud/dist.docker-compose.yml index 35f4e4c..8b98d22 100644 --- a/containers/stacks/cloud/dist.docker-compose.yml +++ b/containers/stacks/cloud/dist.docker-compose.yml @@ -39,8 +39,12 @@ services: - proxy - cloud-net environment: - - APACHE_DISABLE_REWRITE_IP=1 + # Required for redirects + - OVERWRITEHOST=${DOMAIN} + - OVERWRITEPROTOCOL=https - TRUSTED_PROXIES=${TRUSTED_PROXIES} + - APACHE_DISABLE_REWRITE_IP=1 + # Database variables - MYSQL_HOST=cloud-db - MYSQL_DATABASE=${DB_DB} - MYSQL_USER=${DB_USER}