diff --git a/rust/.gitignore b/rust/.gitignore index f2e972dd87..8a45e69442 100644 --- a/rust/.gitignore +++ b/rust/.gitignore @@ -4,3 +4,6 @@ # These are backup files generated by rustfmt **/*.rs.bk + +# Agama configuration file +/etc/agama.d diff --git a/rust/agama-server/share/server-example.yaml b/rust/agama-server/share/server-example.yaml index d0d8c4f399..cfc3379fef 100644 --- a/rust/agama-server/share/server-example.yaml +++ b/rust/agama-server/share/server-example.yaml @@ -1,2 +1,2 @@ --- -jwt_key: "replace-me" +jwt_secret: "UhLgulLqwi8fKSVez3Mrc8HYFXEnB" diff --git a/rust/agama-server/src/web/config.rs b/rust/agama-server/src/web/config.rs index 0292d6d361..224ce63d93 100644 --- a/rust/agama-server/src/web/config.rs +++ b/rust/agama-server/src/web/config.rs @@ -31,7 +31,7 @@ impl ServiceConfig { .set_default("jwt_secret", jwt_secret)? .add_source(File::with_name("/usr/etc/agama.d/server").required(false)) .add_source(File::with_name("/etc/agama.d/server").required(false)) - .add_source(File::with_name("agama-dbus-server/share/server").required(false)) + .add_source(File::with_name("etc/agama.d/server").required(false)) .build()?; config.try_deserialize() }