mirror of
https://github.com/flibusta-apps/telegram_files_cache_server.git
synced 2025-12-06 14:45:36 +01:00
Add get link handler
This commit is contained in:
@@ -9,6 +9,11 @@ pub struct Config {
|
||||
pub postgres_port: u32,
|
||||
pub postgres_db: String,
|
||||
|
||||
pub minio_host: String,
|
||||
pub minio_bucket: String,
|
||||
pub minio_access_key: String,
|
||||
pub minio_secret_key: String,
|
||||
|
||||
pub downloader_api_key: String,
|
||||
pub downloader_url: String,
|
||||
|
||||
@@ -38,6 +43,11 @@ impl Config {
|
||||
postgres_port: get_env("POSTGRES_PORT").parse().unwrap(),
|
||||
postgres_db: get_env("POSTGRES_DB"),
|
||||
|
||||
minio_host: get_env("MINIO_HOST"),
|
||||
minio_bucket: get_env("MINIO_BUCKET"),
|
||||
minio_access_key: get_env("MINIO_ACCESS_KEY"),
|
||||
minio_secret_key: get_env("MINIO_SECRET_KEY"),
|
||||
|
||||
downloader_api_key: get_env("DOWNLOADER_API_KEY"),
|
||||
downloader_url: get_env("DOWNLOADER_URL"),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user