feat: add XMP writer plugin and enhance media upload configuration

This commit is contained in:
2025-11-02 19:22:35 +01:00
parent 13bb9e6b3e
commit 8b98df745c
11 changed files with 217 additions and 31 deletions

View File

@@ -1,7 +1,5 @@
use serde::Deserialize;
use crate::error::CoreResult;
#[derive(Deserialize, Clone)]
pub enum DatabaseType {
Postgres,
@@ -21,17 +19,5 @@ pub struct Config {
pub jwt_secret: String,
pub media_library_path: String,
pub broker_url: String,
}
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: "amqp://guest:guest@localhost:5672/".to_string(),
})
pub max_upload_size_mb: Option<u32>,
}