Add get link handler

This commit is contained in:
2023-08-15 21:39:26 +02:00
parent 7bb39281d2
commit 2b1f03c076
7 changed files with 313 additions and 7 deletions

View File

@@ -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"),