feat: replace hardcoded dummy api-key with env variable
This commit is contained in:
1 parent
18d3edcd53
commit
de5d80c2df
3 files changed
+4
-1
No files matched your search
@@ -82,6 +82,8 @@ APP_LEGAL_NOTICE_URL="https://www.ep-reisen.de/unternehmen/impressum-skireisever
|
||||
APP_TERMS_AND_CONDITIONS_URL="https://www.ep-reisen.de/skireisen/infos/allgemeine-infos/agb/"
|
||||
APP_PRIVACY_POLICY_URL="https://www.ep-reisen.de/unternehmen/impressum-skireiseveranstalter/datenschutz-winterreisen/"
|
||||
APP_CMS_API_BASE_URL="https://www.ep-reisen.de/"
|
||||
# TYPO3 API key (X-Api-Key), sent by the typo3.client scoped client; the real value per stage goes in .env.local
|
||||
APP_CMS_API_KEY=
|
||||
APP_WEBSITE_BASE_URL="https://www.ep-reisen.de/"
|
||||
APP_BASE_URL="https://my.ep-reisen.de"
|
||||
APP_CUSTOMER_SERVICE_EMAIL="[email protected]"
|
||||
|
||||
@@ -22,6 +22,7 @@ framework:
|
||||
base_uri: '%env(resolve:APP_CMS_API_BASE_URL)%'
|
||||
headers:
|
||||
accept: 'text/json'
|
||||
X-Api-Key: '%env(APP_CMS_API_KEY)%'
|
||||
|
||||
when@test:
|
||||
framework:
|
||||
|
||||
@@ -336,7 +336,7 @@ services:
|
||||
App\Service\CmsDataProvider:
|
||||
arguments:
|
||||
$httpClient: '@typo3.client'
|
||||
$apiKey: 'AbcAbc123'# dummy key, not yet implemented
|
||||
$apiKey: '%env(APP_CMS_API_KEY)%'
|
||||
|
||||
App\Logger\RequestIdProcessor:
|
||||
tags:
|
||||
|
||||
Reference in new issue
Block a user