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:
Ellie Huxtable 2024-01-03 13:30:17 +00:00 committed by GitHub
parent 999a98c577
commit 198b4e2ceb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,
} }