Add EmailApi configuration to api and cv-search-job services
Build and Push Docker Images Staging / build (push) Successful in 13m52s

Both api and cv-search-job need to connect to email-api for sending emails.
Add EmailApi section to their appsettings.json with BaseUrl and InternalApiKey
placeholders. Environment variables from docker-compose will populate these at runtime.

Also add EmailApi credentials to docker-compose/.env:
- EmailApi__BaseUrl=http://email-api:8080
- EmailApi__InternalApiKey=<shared key>
- EmailApi__RequireApiKey=true

This ensures both services can authenticate and call the email-api service.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-05-28 15:47:08 +03:00
parent cf78c31e05
commit 0dd329d5b8
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -110,6 +110,10 @@
"BaseUrl": "", "BaseUrl": "",
"InternalApiKey": "" "InternalApiKey": ""
}, },
"EmailApi": {
"BaseUrl": "",
"InternalApiKey": ""
},
"RateLimiting": { "RateLimiting": {
"Global": { "Global": {
"PermitLimit": 120, "PermitLimit": 120,
+4
View File
@@ -81,6 +81,10 @@
"BaseUrl": "http://cv-matcher-api:8080", "BaseUrl": "http://cv-matcher-api:8080",
"InternalApiKey": "" "InternalApiKey": ""
}, },
"EmailApi": {
"BaseUrl": "http://email-api:8080",
"InternalApiKey": ""
},
"FileStorage": { "FileStorage": {
"Path": "Files" "Path": "Files"
}, },