This commit is contained in:
2024-05-05 21:13:02 +02:00
parent e4dbfda469
commit 6381560e03
2 changed files with 3 additions and 1 deletions

View File

@@ -340,7 +340,7 @@ async fn send_archive_link(
) -> BotHandlerInternal { ) -> BotHandlerInternal {
let link = format!( let link = format!(
"{}/api/download/{}", "{}/api/download/{}",
config::CONFIG.batch_downloader_url.clone(), config::CONFIG.public_batch_downloader_url.clone(),
task.id task.id
); );

View File

@@ -21,6 +21,7 @@ pub struct Config {
pub cache_server_api_key: String, pub cache_server_api_key: String,
pub batch_downloader_url: String, pub batch_downloader_url: String,
pub public_batch_downloader_url: String,
pub batch_downloader_api_key: String, pub batch_downloader_api_key: String,
pub sentry_dsn: String, pub sentry_dsn: String,
@@ -56,6 +57,7 @@ impl Config {
cache_server_api_key: get_env("CACHE_SERVER_API_KEY"), cache_server_api_key: get_env("CACHE_SERVER_API_KEY"),
batch_downloader_url: get_env("BATCH_DOWNLOADER_URL"), batch_downloader_url: get_env("BATCH_DOWNLOADER_URL"),
public_batch_downloader_url: get_env("PUBLIC_BATCH_DOWNLOADER_URL"),
batch_downloader_api_key: get_env("BATCH_DOWNLOADER_API_KEY"), batch_downloader_api_key: get_env("BATCH_DOWNLOADER_API_KEY"),
sentry_dsn: get_env("SENTRY_DSN"), sentry_dsn: get_env("SENTRY_DSN"),