nixos/headscale: do not run gin webframework in debug mode

This commit is contained in:
sohalt 2022-06-07 23:22:05 +02:00
parent 18c899d963
commit f1669775bc

View File

@ -429,6 +429,8 @@ in
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
restartTriggers = [ configFile ]; restartTriggers = [ configFile ];
environment.GIN_MODE = "release";
script = '' script = ''
${optionalString (cfg.database.passwordFile != null) '' ${optionalString (cfg.database.passwordFile != null) ''
export HEADSCALE_DB_PASS="$(head -n1 ${escapeShellArg cfg.database.passwordFile})" export HEADSCALE_DB_PASS="$(head -n1 ${escapeShellArg cfg.database.passwordFile})"