pub struct Konfig {
pub port: u16,
pub admin_email: Option<String>,
pub working_directory: Option<String>,
pub auth_cookie_name: String,
pub static_files_path: Option<String>,
pub host: String,
pub secret_key: String,
pub console_log: Option<bool>,
pub log_file: Option<bool>,
}
Expand description
๐๏ธ Server configuration
Fieldsยง
ยงport: u16
Port to access the server
admin_email: Option<String>
Admin email address
working_directory: Option<String>
Kong server working directory, path should end with /
defaults to kong/
Name of the authorization session cookie id
static_files_path: Option<String>
Path to static files, if not provided no static files will be served
host: String
Node hostname
secret_key: String
Kong secret key
console_log: Option<bool>
Weather the server should log information to console. Console logging is enabled by default.
log_file: Option<bool>
Weather the server should log information to file, the file is stored in the working directory as LOG. Logging to the LOG file is disabled by default
Implementationsยง
Trait Implementationsยง
sourceยงimpl<'de> Deserialize<'de> for Konfig
impl<'de> Deserialize<'de> for Konfig
sourceยงfn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more