diff options
| -rw-r--r-- | adonis/autopush/default.nix | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/adonis/autopush/default.nix b/adonis/autopush/default.nix index 5ee9c02..292abaf 100644 --- a/adonis/autopush/default.nix +++ b/adonis/autopush/default.nix @@ -20,7 +20,15 @@ in { enable = true; port = redisPort; }; - systemd.services = { + systemd.services = let + logLevel = "info"; + rustLog = + "autopush=${logLevel}," + + "autopush_common=${logLevel}," + + "autoendpoint=${logLevel}," + + "autoconnect=${logLevel}," + + "slog_mozlog_json=info,warn"; + in { autopush-autoconnect = { environment = { AUTOCONNECT__DB_DSN = "redis://127.0.0.1:${builtins.toString redisPort}"; @@ -28,6 +36,7 @@ in { AUTOCONNECT__ENDPOINT_HOSTNAME = "updates.${domain}"; AUTOCONNECT__ENDPOINT_PORT = builtins.toString endpointPort; AUTOCONNECT__ROUTER_HOSTNAME = "127.0.0.1"; + RUST_LOG = rustLog; }; wantedBy = ["multi-user.target"]; serviceConfig = { @@ -42,6 +51,7 @@ in { AUTOEND__PORT = builtins.toString port; AUTOEND__ENDPOINT_URL = "https://updates.${domain}"; AUTOEND__HUMAN_LOGS = "true"; + RUST_LOG = rustLog; }; wantedBy = ["multi-user.target"]; serviceConfig = { |
