diff options
| author | iv-ar <i@oiee.no> | 2023-03-01 21:53:52 +0100 |
|---|---|---|
| committer | iv-ar <i@oiee.no> | 2023-03-01 21:53:52 +0100 |
| commit | 1fd5d9da8aec92786012ba2f0a4495718c471367 (patch) | |
| tree | ae0ab0b2d9d6e4bb27a2d894ca91ee9a0295fdff /code/api/src/Models/Static | |
| parent | e0a4b1b0e48fac35e7d2b86122b9df286e10231c (diff) | |
| download | greatoffice-1fd5d9da8aec92786012ba2f0a4495718c471367.tar.xz greatoffice-1fd5d9da8aec92786012ba2f0a4495718c471367.zip | |
feat: Change how we enable flight mode
Diffstat (limited to 'code/api/src/Models/Static')
| -rw-r--r-- | code/api/src/Models/Static/AppEnvironmentVariables.cs | 47 |
1 files changed, 30 insertions, 17 deletions
diff --git a/code/api/src/Models/Static/AppEnvironmentVariables.cs b/code/api/src/Models/Static/AppEnvironmentVariables.cs index c3f821d..0c1938d 100644 --- a/code/api/src/Models/Static/AppEnvironmentVariables.cs +++ b/code/api/src/Models/Static/AppEnvironmentVariables.cs @@ -2,20 +2,33 @@ 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 duration of which to keep a local cached version of the configuration - /// </summary> - public const string VAULT_CACHE_TTL = "VAULT_CACHE_TTL"; - /// <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> + /// 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> + /// A url pointing to the Hashicorp Vault instance the app should use + /// </summary> + public const string VAULT_URL = "VAULT_URL"; + + /// <summary> + /// The duration of which to keep a local cached version of the configuration + /// </summary> + public const string VAULT_CACHE_TTL = "VAULT_CACHE_TTL"; + + /// <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> + /// Tells the api to enable flight mode, only acts in DEBUG + /// </summary> + public const string FLIGHT_MODE = "FLIGHT_MODE"; + + /// <summary> + /// Tells the api where to read configuration from, defaults to flightmode.json, only acts in DEBUG + /// </summary> + public const string FLIGHT_MODE_JSON = "FLIGHT_MODE_JSON"; +}
\ No newline at end of file |
