api keys change

This commit is contained in:
flo 2025-01-01 23:45:37 +01:00
parent 7a96e5175d
commit cfa750aff2
3 changed files with 3 additions and 26 deletions

View File

@ -8,11 +8,7 @@ DB_NAME=template
DB_NAME_LOG=log DB_NAME_LOG=log
# API Keys # API Keys
AUTH_API_KEY= TEMPLATE_API_KEY=
NOTIFICATION_API_KEY=
FILE_API_KEY=
HOMEPAGE_API_KEY=
BEE_API_KEY=
# Template Setup # Template Setup
INIT_USER_NAME=admin INIT_USER_NAME=admin

View File

@ -3,26 +3,7 @@
return [ return [
'api' => [ 'api' => [
'keys' => [ 'keys' => [
'template' => $_ENV['HOMEPAGE_API_KEY'], 'template' => $_ENV['TEMPLATE_API_KEY'],
'notification' => $_ENV['NOTIFICATION_API_KEY'],
],
'services' => [
'template' => [
'host' => 'template-backend-nginx',
'apis' => [
]
],
'notification' => [
'host' => 'notification-backend-nginx',
'apis' => [
'send-mail' => [
'path' => '/api/mail/send',
'method' => 'POST'
],
],
],
], ],
], ],
]; ];

View File

@ -18,7 +18,7 @@ class RequestServiceFactory implements FactoryInterface
{ {
/** @var ConfigService $configService */ /** @var ConfigService $configService */
$configService = $container->get(ConfigService::class); $configService = $container->get(ConfigService::class);
$apiKey = $configService->resolve("api.keys.Template"); $apiKey = $configService->resolve("api.keys.template");
return new RequestService( return new RequestService(
$apiKey, $apiKey,