From 4a3c82390980a918593eb608ec63a1e6370bc02f Mon Sep 17 00:00:00 2001 From: "Mads H. Danquah" Date: Fri, 10 May 2019 14:18:57 +0200 Subject: [PATCH] Introduce a configration that points a public endpoint for the search host. The search-host is accessed both by the admin-backend, and directly by the administrative-users browser. For situations where the public url for the search-host is not accessible to the backend (eg. due to firewalls) we need two seperate configurations for the public url (for the users browser) and the internal url (for backend interaction). --- app/config/config.yml | 1 + app/config/parameters.yml.dist | 1 + 2 files changed, 2 insertions(+) diff --git a/app/config/config.yml b/app/config/config.yml index 2b5b9f666..6f522f6c2 100644 --- a/app/config/config.yml +++ b/app/config/config.yml @@ -41,6 +41,7 @@ twig: sharing_host: '%sharing_host%' sharing_enabled: '%sharing_enabled%' search_host: '%search_host%' + search_host_public: '%search_host_public%' search_index: '%search_index%' site_title: '%site_title%' version: '%version%' diff --git a/app/config/parameters.yml.dist b/app/config/parameters.yml.dist index 041e59f85..177dc5f6e 100644 --- a/app/config/parameters.yml.dist +++ b/app/config/parameters.yml.dist @@ -35,6 +35,7 @@ parameters: sharing_enabled: true search_host: http://127.0.0.1:3010 + search_host_public: ~ search_path: /api search_apikey: 1234567890 search_index: e7df7cd2ca07f4f1ab415d457a6e1c13