nixos/netbox: set path of dynamic content
By default this paths are set in the Nix store, and so no media, reports, or scripts could be added / modified
This commit is contained in:
parent
c55d02f41b
commit
01932120ab
|
@ -9,6 +9,10 @@ let
|
|||
name = "configuration.py";
|
||||
text = ''
|
||||
STATIC_ROOT = '${staticDir}'
|
||||
MEDIA_ROOT = '${cfg.dataDir}/media'
|
||||
REPORTS_ROOT = '${cfg.dataDir}/reports'
|
||||
SCRIPTS_ROOT = '${cfg.dataDir}/scripts'
|
||||
|
||||
ALLOWED_HOSTS = ['*']
|
||||
DATABASE = {
|
||||
'NAME': 'netbox',
|
||||
|
|
Loading…
Reference in a new issue