Move config to /etc/netbox/config (Fixes #54)

With this the configuration is moved to /etc/netbox/config and the
default reports directory is set to /etc/netbox/reports. This enables
the user to mount reports from a config map or persistent volume in
OpenShift.
This commit is contained in:
Tobias Genannt 2018-04-03 09:02:19 +02:00 committed by Christian Mäder
parent 5b62a4c0ad
commit b46bd58e0a
No known key found for this signature in database
GPG key ID: 92FFD0A711F196BB
8 changed files with 11 additions and 11 deletions

View file

@ -141,7 +141,7 @@ PREFER_IPV4 = os.environ.get('PREFER_IPV4', 'False').lower() == 'true'
# The file path where custom reports will be stored. A trailing slash is not needed. Note that the default value of
# this setting is derived from the installed location.
REPORTS_ROOT = os.environ.get('REPORTS_ROOT', os.path.join(BASE_DIR, 'reports'))
REPORTS_ROOT = os.environ.get('REPORTS_ROOT', '/etc/netbox/reports')
# Time zone (default: UTC)
TIME_ZONE = os.environ.get('TIME_ZONE', 'UTC')