This commit is contained in:
2023-06-07 20:56:45 +02:00
parent 689ce34d10
commit 18fddf6e5c
4 changed files with 165 additions and 14 deletions

View File

@@ -17,6 +17,9 @@ pub struct Config {
pub cache_server_url: String,
pub cache_server_api_key: String,
pub batch_downloader_url: String,
pub batch_downloader_api_key: String,
pub sentry_dsn: String,
}
@@ -48,6 +51,9 @@ impl Config {
cache_server_url: get_env("CACHE_SERVER_URL"),
cache_server_api_key: get_env("CACHE_SERVER_API_KEY"),
batch_downloader_url: get_env("BATCH_DOWNLOADER_URL"),
batch_downloader_api_key: get_env("BATCH_DOWNLOADER_API_KEY"),
sentry_dsn: get_env("SENTRY_DSN"),
}
}