mirror of
https://github.com/atuinsh/atuin.git
synced 2024-12-27 09:29:24 +01:00
fix(server): typo with default config (#1493)
Without TLS config, the server fails to load defaults. Until this is released, add this to your server config ``` [tls] enable = false cert_path = "" pkey_path = "" ```
This commit is contained in:
parent
999a98c577
commit
198b4e2ceb
@ -70,7 +70,7 @@ impl<DbSettings: DeserializeOwned> Settings<DbSettings> {
|
|||||||
.set_default("metrics.port", 9001)?
|
.set_default("metrics.port", 9001)?
|
||||||
.set_default("tls.enable", false)?
|
.set_default("tls.enable", false)?
|
||||||
.set_default("tls.cert_path", "")?
|
.set_default("tls.cert_path", "")?
|
||||||
.set_default("tls.key_path", "")?
|
.set_default("tls.pkey_path", "")?
|
||||||
.add_source(
|
.add_source(
|
||||||
Environment::with_prefix("atuin")
|
Environment::with_prefix("atuin")
|
||||||
.prefix_separator("_")
|
.prefix_separator("_")
|
||||||
@ -105,6 +105,7 @@ pub fn example_config() -> &'static str {
|
|||||||
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
|
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
|
||||||
pub struct Tls {
|
pub struct Tls {
|
||||||
pub enable: bool,
|
pub enable: bool,
|
||||||
|
|
||||||
pub cert_path: PathBuf,
|
pub cert_path: PathBuf,
|
||||||
pub pkey_path: PathBuf,
|
pub pkey_path: PathBuf,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user