20 lines
656 B
Rust
20 lines
656 B
Rust
use libertas_core::{
|
|
config::{Config, DatabaseConfig, DatabaseType},
|
|
error::CoreResult,
|
|
};
|
|
|
|
pub fn load_config() -> CoreResult<Config> {
|
|
Ok(Config {
|
|
database: DatabaseConfig {
|
|
db_type: DatabaseType::Postgres,
|
|
url: "postgres://postgres:postgres@localhost:5432/libertas_db".to_string(),
|
|
},
|
|
server_address: "127.0.0.1:8080".to_string(),
|
|
jwt_secret: "super_secret_jwt_key".to_string(),
|
|
media_library_path: "media_library".to_string(),
|
|
broker_url: "nats://localhost:4222".to_string(),
|
|
max_upload_size_mb: Some(100),
|
|
default_storage_quota_gb: Some(10),
|
|
})
|
|
}
|