From 43f96fed84f20d875fcfeef8272d88d7a69631cc Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Fri, 25 Nov 2022 16:31:06 +0900 Subject: feat: Add EMAIL_FROM_ as required config --- README.md | 3 +++ code/api/src/Services/VaultService.cs | 2 ++ 2 files changed, 5 insertions(+) diff --git a/README.md b/README.md index 6202715..6951bf6 100644 --- a/README.md +++ b/README.md @@ -51,9 +51,12 @@ All environment variables the api needs to function properly is specified in [`c The following configuration keys need valid values in order to start the api (regardless of environment): * Starting with DB_ +* Starting with EMAIL_FROM_ * Starting with QUARTZ_DB_ * Equal to APP_CERT +> See [`code/api/src/Data/Models/AppConfiguration.cs`](./code/api/src/Data/Models/AppConfiguration.cs) for expected values. + #### Flight mode If you need to skip the setup of vault or is unable to reach your vault instance, set isInFlightMode to true in [`code/api/src/Services/VaultService.cs`](./code/api/src/Services/VaultService.cs). diff --git a/code/api/src/Services/VaultService.cs b/code/api/src/Services/VaultService.cs index b64e6a2..8139985 100644 --- a/code/api/src/Services/VaultService.cs +++ b/code/api/src/Services/VaultService.cs @@ -78,6 +78,8 @@ public class VaultService { return new AppConfiguration() { + EMAIL_FROM_ADDRESS = "local@dev", + EMAIL_FROM_DISPLAY_NAME = "Friendly neighbourhood developer", DB_HOST = "localhost", DB_PORT = "5432", DB_NAME = "greatoffice_ivar_dev", -- cgit v1.3