feat: add XMP writer plugin and enhance media upload configuration
This commit is contained in:
@@ -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>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user