mirror of
https://codeberg.org/cunicu/cunicu.git
synced 2025-09-26 21:01:14 +08:00
feat(nix-module): add signal server log level option
Signed-off-by: Adam Rizkalla <ajarizzo@gmail.com>
This commit is contained in:

committed by
Steffen Vogel

parent
4143015520
commit
d6b0ff31fb
@@ -44,6 +44,12 @@ in
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
};
|
||||
|
||||
loglevel = lib.mkOption {
|
||||
description = "Log level";
|
||||
type = lib.types.str;
|
||||
default = "info";
|
||||
};
|
||||
};
|
||||
|
||||
relay = {
|
||||
@@ -192,7 +198,7 @@ in
|
||||
User = "cunicu";
|
||||
Group = "cunicu";
|
||||
ExecStart =
|
||||
"${lib.getExe cfg.package} signal "
|
||||
"${lib.getExe cfg.package} signal --log-level ${cfg.signal.loglevel} "
|
||||
+ lib.cli.toGNUCommandLineShell { } { inherit (cfg.signal) secure listen; };
|
||||
|
||||
# Hardening
|
||||
|
Reference in New Issue
Block a user