systemprompt_models/profile/server.rs
1//! Server configuration.
2
3use serde::{Deserialize, Serialize};
4
5#[derive(Debug, Clone, Serialize, Deserialize)]
6pub struct ServerConfig {
7 pub host: String,
8
9 pub port: u16,
10
11 pub api_server_url: String,
12
13 pub api_internal_url: String,
14
15 pub api_external_url: String,
16
17 #[serde(default)]
18 pub use_https: bool,
19
20 #[serde(default)]
21 pub cors_allowed_origins: Vec<String>,
22}