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
|
else
|
||||||
"redis://${cfg.celeryRedis.host}:${toString cfg.celeryRedis.port}/0";
|
"redis://${cfg.celeryRedis.host}:${toString cfg.celeryRedis.port}/0";
|
||||||
env = {
|
env = {
|
||||||
DEBUG = "false";
|
DEBUG = if cfg.debug then "true" else "false";
|
||||||
DOMAIN = cfg.domain;
|
DOMAIN = cfg.domain;
|
||||||
BOOKWYRM_DATABASE_BACKEND = "postgres";
|
BOOKWYRM_DATABASE_BACKEND = "postgres";
|
||||||
MEDIA_ROOT = (builtins.toPath cfg.stateDir) + "/images";
|
MEDIA_ROOT = (builtins.toPath cfg.stateDir) + "/images";
|
||||||
|
@ -121,6 +121,13 @@ in
|
||||||
description = ''
|
description = ''
|
||||||
List of hosts to allow, checked against the <literal>Host:</literal>
|
List of hosts to allow, checked against the <literal>Host:</literal>
|
||||||
header. Leave empty to accept all hosts.
|
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