diff options
| -rw-r--r-- | README.md | 14 | ||||
| -rw-r--r-- | server/src/Data/Static/AppEnvironmentVariables.cs | 12 | ||||
| -rw-r--r-- | server/src/Program.cs | 1 |
3 files changed, 15 insertions, 12 deletions
@@ -12,19 +12,9 @@ To run it you need .NET 6 and a PostgreSQL instance. ### Environment -The server is configured through environments variables, -in development [user-secret](https://docs.microsoft.com/en-us/aspnet/core/security/app-secrets) is a nifty tool. +The server is configured through environments variables, in development [user-secret](https://docs.microsoft.com/en-us/aspnet/core/security/app-secrets) is a nifty tool. -All environment variables the server needs to function properly is specified -in [src/server/Data/Static/AppEnvironmentVariables.cs](./server/src/Data/Static/AppEnvironmentVariables.cs),w -at a bare minimum these variables needs to be set: - -``` -DB_HOST=<host> -DB_USER=<user> -DB_PASSWORD=<password> -DB_NAME=<schema> -``` +All environment variables the server needs to function properly is specified in [src/server/Data/Static/AppEnvironmentVariables.cs](./server/src/Data/Static/AppEnvironmentVariables.cs). ### Building and Developing diff --git a/server/src/Data/Static/AppEnvironmentVariables.cs b/server/src/Data/Static/AppEnvironmentVariables.cs index 4555bfb..2a2d591 100644 --- a/server/src/Data/Static/AppEnvironmentVariables.cs +++ b/server/src/Data/Static/AppEnvironmentVariables.cs @@ -2,8 +2,20 @@ namespace IOL.GreatOffice.Api.Data.Static; public static class AppEnvironmentVariables { + /// <summary> + /// An access token that can be used to access the Hashicorp Vault instance that is available at VAULT_URL + /// </summary> public const string VAULT_TOKEN = "VAULT_TOKEN"; + /// <summary> + /// An url pointing to the Hashicorp Vault instance the app should use + /// </summary> public const string VAULT_URL = "VAULT_URL"; + /// <summary> + /// The vault key name for the main configuration json object, described by <see cref="AppConfiguration"/> + /// </summary> public const string MAIN_CONFIG_SHEET = "MAIN_CONFIG_SHEET"; + /// <summary> + /// The duration of which to keep a local cached version of the configuration + /// </summary> public const string VAULT_CACHE_TTL = "CONFIG_CACHE_TTL"; } diff --git a/server/src/Program.cs b/server/src/Program.cs index d7bbf9f..0d6b3d3 100644 --- a/server/src/Program.cs +++ b/server/src/Program.cs @@ -103,6 +103,7 @@ public static class Program options.UseMicrosoftDependencyInjectionJobFactory(); options.RegisterJobs(); }); + builder.Services.AddQuartzHostedService(options => { options.WaitForJobsToComplete = true; }); |
