From 1fd5d9da8aec92786012ba2f0a4495718c471367 Mon Sep 17 00:00:00 2001 From: iv-ar Date: Wed, 1 Mar 2023 21:53:52 +0100 Subject: feat: Change how we enable flight mode --- .../src/Models/Static/AppEnvironmentVariables.cs | 47 ++++++++++++++-------- 1 file changed, 30 insertions(+), 17 deletions(-) (limited to 'code/api/src/Models/Static/AppEnvironmentVariables.cs') 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 { - /// - /// An access token that can be used to access the Hashicorp Vault instance that is available at VAULT_URL - /// - public const string VAULT_TOKEN = "VAULT_TOKEN"; - /// - /// An url pointing to the Hashicorp Vault instance the app should use - /// - public const string VAULT_URL = "VAULT_URL"; - /// - /// The duration of which to keep a local cached version of the configuration - /// - public const string VAULT_CACHE_TTL = "VAULT_CACHE_TTL"; - /// - /// The vault key name for the main configuration json object, described by - /// - public const string MAIN_CONFIG_SHEET = "MAIN_CONFIG_SHEET"; -} + /// + /// An access token that can be used to access the Hashicorp Vault instance that is available at VAULT_URL + /// + public const string VAULT_TOKEN = "VAULT_TOKEN"; + + /// + /// A url pointing to the Hashicorp Vault instance the app should use + /// + public const string VAULT_URL = "VAULT_URL"; + + /// + /// The duration of which to keep a local cached version of the configuration + /// + public const string VAULT_CACHE_TTL = "VAULT_CACHE_TTL"; + + /// + /// The vault key name for the main configuration json object, described by + /// + public const string MAIN_CONFIG_SHEET = "MAIN_CONFIG_SHEET"; + + /// + /// Tells the api to enable flight mode, only acts in DEBUG + /// + public const string FLIGHT_MODE = "FLIGHT_MODE"; + + /// + /// Tells the api where to read configuration from, defaults to flightmode.json, only acts in DEBUG + /// + public const string FLIGHT_MODE_JSON = "FLIGHT_MODE_JSON"; +} \ No newline at end of file -- cgit v1.3