summaryrefslogtreecommitdiffstats
path: root/server/src/Data
diff options
context:
space:
mode:
authorivarlovlie <git@ivarlovlie.no>2022-06-04 21:05:47 +0200
committerivarlovlie <git@ivarlovlie.no>2022-06-04 21:13:00 +0200
commitcf9597de850de1ef721a35ad79ac67b9fdb9e1d4 (patch)
tree4805de53a24bedd91238d6d306476b1921ccc0ad /server/src/Data
parentfdbeffe78e5cd7393d28915189ec518a06b941f1 (diff)
downloadgreatoffice-cf9597de850de1ef721a35ad79ac67b9fdb9e1d4.tar.xz
greatoffice-cf9597de850de1ef721a35ad79ac67b9fdb9e1d4.zip
refactor: Use Vault to get configuration
Diffstat (limited to 'server/src/Data')
-rw-r--r--server/src/Data/Static/AppConfiguration.cs27
-rw-r--r--server/src/Data/Static/AppEnvironmentVariables.cs25
2 files changed, 30 insertions, 22 deletions
diff --git a/server/src/Data/Static/AppConfiguration.cs b/server/src/Data/Static/AppConfiguration.cs
new file mode 100644
index 0000000..a6494ea
--- /dev/null
+++ b/server/src/Data/Static/AppConfiguration.cs
@@ -0,0 +1,27 @@
+namespace IOL.GreatOffice.Api.Data.Static;
+
+public class AppConfiguration
+{
+ public string DB_HOST { get; set; }
+ public string DB_PORT { get; set; }
+ public string DB_USER { get; set; }
+ public string DB_PASSWORD { get; set; }
+ public string DB_NAME { get; set; }
+ public string QUARTZ_DB_HOST { get; set; }
+ public string QUARTZ_DB_PORT { get; set; }
+ public string QUARTZ_DB_USER { get; set; }
+ public string QUARTZ_DB_PASSWORD { get; set; }
+ public string QUARTZ_DB_NAME { get; set; }
+ public string SEQ_API_KEY { get; set; }
+ public string SEQ_API_URL { get; set; }
+ public string SMTP_HOST { get; set; }
+ public string SMTP_PORT { get; set; }
+ public string SMTP_USER { get; set; }
+ public string SMTP_PASSWORD { get; set; }
+ public string EMAIL_FROM_ADDRESS { get; set; }
+ public string EMAIL_FROM_DISPLAY_NAME { get; set; }
+ public string PORTAL_URL { get; set; }
+ public string GITHUB_CLIENT_ID { get; set; }
+ public string GITHUB_CLIENT_SECRET { get; set; }
+ public string APP_AES_KEY { get; set; }
+}
diff --git a/server/src/Data/Static/AppEnvironmentVariables.cs b/server/src/Data/Static/AppEnvironmentVariables.cs
index a734146..181eced 100644
--- a/server/src/Data/Static/AppEnvironmentVariables.cs
+++ b/server/src/Data/Static/AppEnvironmentVariables.cs
@@ -2,26 +2,7 @@ namespace IOL.GreatOffice.Api.Data.Static;
public static class AppEnvironmentVariables
{
- public const string DB_HOST = "DB_HOST";
- public const string DB_PORT = "DB_PORT";
- public const string DB_USER = "DB_USER";
- public const string DB_PASSWORD = "DB_PASSWORD";
- public const string DB_NAME = "DB_NAME";
- public const string QUARTZ_DB_HOST = "QUARTZ_DB_HOST";
- public const string QUARTZ_DB_PORT = "QUARTZ_DB_PORT";
- public const string QUARTZ_DB_USER = "QUARTZ_DB_USER";
- public const string QUARTZ_DB_PASSWORD = "QUARTZ_DB_PASSWORD";
- public const string QUARTZ_DB_NAME = "QUARTZ_DB_NAME";
- public const string SEQ_API_KEY = "SEQ_API_KEY";
- public const string SEQ_API_URL = "SEQ_API_URL";
- public const string SMTP_HOST = "SMTP_HOST";
- public const string SMTP_PORT = "SMTP_PORT";
- public const string SMTP_USER = "SMTP_USER";
- public const string SMTP_PASSWORD = "SMTP_PASSWORD";
- public const string EMAIL_FROM_ADDRESS = "EMAIL_FROM_ADDRESS";
- public const string EMAIL_FROM_DISPLAY_NAME = "EMAIL_FROM_DISPLAY_NAME";
- public const string ACCOUNTS_URL = "ACCOUNTS_URL";
- public const string GITHUB_CLIENT_ID = "GH_CLIENT_ID";
- public const string GITHUB_CLIENT_SECRET = "GH_CLIENT_SECRET";
- public const string APP_AES_KEY = "APP_AES_KEY";
+ public const string VAULT_TOKEN = "VAULT_TOKEN";
+ public const string VAULT_URL = "VAULT_URL";
+ public const string MAIN_CONFIG_SHEET = "MAIN_CONFIG_SHEET";
}