diff options
author | Ellie Huxtable <ellie@elliehuxtable.com> | 2024-01-03 13:30:17 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-03 13:30:17 +0000 |
commit | 198b4e2ceb04df22b2258e0cc14a2856e35d29d1 (patch) | |
tree | 4af89d868ceef25dec3add1c7476cdfbd103a3bc /atuin-server | |
parent | 999a98c577276e1b962ae0421c63962622859c66 (diff) |
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 = ""
```
Diffstat (limited to 'atuin-server')
-rw-r--r-- | atuin-server/src/settings.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/atuin-server/src/settings.rs b/atuin-server/src/settings.rs index 70008fbc5..1b1520133 100644 --- a/atuin-server/src/settings.rs +++ b/atuin-server/src/settings.rs @@ -70,7 +70,7 @@ impl<DbSettings: DeserializeOwned> Settings<DbSettings> { .set_default("metrics.port", 9001)? .set_default("tls.enable", false)? .set_default("tls.cert_path", "")? - .set_default("tls.key_path", "")? + .set_default("tls.pkey_path", "")? .add_source( Environment::with_prefix("atuin") .prefix_separator("_") @@ -105,6 +105,7 @@ pub fn example_config() -> &'static str { #[derive(Clone, Debug, Default, Deserialize, Serialize)] pub struct Tls { pub enable: bool, + pub cert_path: PathBuf, pub pkey_path: PathBuf, } |