diff options
| author | ivarlovlie <git@ivarlovlie.no> | 2022-11-25 08:31:06 +0100 |
|---|---|---|
| committer | ivarlovlie <git@ivarlovlie.no> | 2022-11-25 08:31:06 +0100 |
| commit | 43f96fed84f20d875fcfeef8272d88d7a69631cc (patch) | |
| tree | bddb56e07f658733eed13b2b400027fcef13773d | |
| parent | ca9c1cdf1ec2988f14ac4ca788edac31153f735f (diff) | |
| download | greatoffice-43f96fed84f20d875fcfeef8272d88d7a69631cc.tar.xz greatoffice-43f96fed84f20d875fcfeef8272d88d7a69631cc.zip | |
feat: Add EMAIL_FROM_ as required config
| -rw-r--r-- | README.md | 3 | ||||
| -rw-r--r-- | code/api/src/Services/VaultService.cs | 2 |
2 files changed, 5 insertions, 0 deletions
@@ -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", |
