From 933a5be87441a386d0961f92d785e0891dc96b12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Thu, 16 Jul 2020 15:09:58 +0200 Subject: [PATCH] set missing env vars MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit REVA_FRONTEND_URL and REVA_DATAGATEWAY_URL need to be set to the OCIS_DOMAIN so upload is not using localhost ;-) cc @jnweiger Signed-off-by: Jörn Friedrich Dreyer --- changelog/unreleased/add-missing-env-vars.md | 5 +++++ docker-compose.yml | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 changelog/unreleased/add-missing-env-vars.md diff --git a/changelog/unreleased/add-missing-env-vars.md b/changelog/unreleased/add-missing-env-vars.md new file mode 100644 index 0000000000..84a6313337 --- /dev/null +++ b/changelog/unreleased/add-missing-env-vars.md @@ -0,0 +1,5 @@ +Bugfix: add missing env vars to docker compose + +Without setting `REVA_FRONTEND_URL` and `REVA_DATAGATEWAY_URL` uploads would default to locahost and fail if `OCIS_DOMAIN` was used to run ocis on a remote host. + +https://github.com/owncloud/ocis/pull/392 diff --git a/docker-compose.yml b/docker-compose.yml index 919b52ea98..1862e89659 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -42,6 +42,8 @@ services: REVA_STORAGE_EOS_MASTER_URL: ${EOS_MGM_URL:-root://mgm-master.testnet:1094} REVA_STORAGE_EOS_SLAVE_URL: ${EOS_MGM_URL:-root://mgm-master.testnet:1094} REVA_STORAGE_EOS_LAYOUT: "{{substr 0 1 .Id.OpaqueId}}" + REVA_FRONTEND_URL: https://${OCIS_DOMAIN:-localhost}:9200 + REVA_DATAGATEWAY_URL: https://${OCIS_DOMAIN:-localhost}:9200/data mgm-master: container_name: mgm-master