forked from mirrors/nixpkgs
nixos/headscale: do not run gin webframework in debug mode
This commit is contained in:
parent
18c899d963
commit
f1669775bc
|
@ -429,6 +429,8 @@ in
|
|||
wantedBy = [ "multi-user.target" ];
|
||||
restartTriggers = [ configFile ];
|
||||
|
||||
environment.GIN_MODE = "release";
|
||||
|
||||
script = ''
|
||||
${optionalString (cfg.database.passwordFile != null) ''
|
||||
export HEADSCALE_DB_PASS="$(head -n1 ${escapeShellArg cfg.database.passwordFile})"
|
||||
|
|
Loading…
Reference in a new issue