crawlnicle/src/config.rs
Tyler Hallada 3f028c3088 Store entry html content outside DB in file storage
Since the HTML content can get quite big and can have embeded images.
2023-07-05 23:45:49 -04:00

20 lines
429 B
Rust

use clap::Parser;
#[derive(Parser, Clone, Debug)]
pub struct Config {
#[clap(long, env)]
pub database_url: String,
#[clap(long, env)]
pub database_max_connections: u32,
#[clap(long, env)]
pub host: String,
#[clap(long, env)]
pub port: u16,
#[clap(long, env)]
pub title: String,
#[clap(long, env)]
pub max_mem_log_size: usize,
#[clap(long, env)]
pub content_dir: String,
}