nix: add an option for toggling DEBUG
This commit is contained in:
parent
9b41388842
commit
f52447f7d2
1 changed files with 8 additions and 1 deletions
|
@ -13,7 +13,7 @@ let
|
|||
else
|
||||
"redis://${cfg.celeryRedis.host}:${toString cfg.celeryRedis.port}/0";
|
||||
env = {
|
||||
DEBUG = "false";
|
||||
DEBUG = if cfg.debug then "true" else "false";
|
||||
DOMAIN = cfg.domain;
|
||||
BOOKWYRM_DATABASE_BACKEND = "postgres";
|
||||
MEDIA_ROOT = (builtins.toPath cfg.stateDir) + "/images";
|
||||
|
@ -121,6 +121,13 @@ in
|
|||
description = ''
|
||||
List of hosts to allow, checked against the <literal>Host:</literal>
|
||||
header. Leave empty to accept all hosts.
|
||||
|
||||
debug = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = ''
|
||||
Whether to enable debug mode. Debug mode should not be used in
|
||||
production, but provides more verbose logging.
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue