aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorivarlovlie <git@ivarlovlie.no>2022-11-25 08:31:06 +0100
committerivarlovlie <git@ivarlovlie.no>2022-11-25 08:31:06 +0100
commit43f96fed84f20d875fcfeef8272d88d7a69631cc (patch)
treebddb56e07f658733eed13b2b400027fcef13773d
parentca9c1cdf1ec2988f14ac4ca788edac31153f735f (diff)
downloadgreatoffice-43f96fed84f20d875fcfeef8272d88d7a69631cc.tar.xz
greatoffice-43f96fed84f20d875fcfeef8272d88d7a69631cc.zip
feat: Add EMAIL_FROM_ as required config
-rw-r--r--README.md3
-rw-r--r--code/api/src/Services/VaultService.cs2
2 files changed, 5 insertions, 0 deletions
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",