Struct kong::Konfig

source ·
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/

§auth_cookie_name: String

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§

Read server config file from path provided as an argument when the program was started.

read port from config file

Read working directory from config file

read loggin

Trait Implementations§

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.