Add STORAGE_BACKEND support in configuration.py

This settings enable the support for STORAGE_BACKEND and STORAGE_CONFIG in the configuration.py file.
This commit is contained in:
Alessandro Gervaso 2020-06-09 18:37:13 +02:00 committed by GitHub
parent 688672de26
commit c75311c469
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -199,6 +199,17 @@ REPORTS_ROOT = os.environ.get('REPORTS_ROOT', '/etc/netbox/reports')
# this setting is derived from the installed location.
SCRIPTS_ROOT = os.environ.get('SCRIPTS_ROOT', '/etc/netbox/scripts')
# The backend storage engine for handling uploaded files (e.g. image attachments). NetBox supports integration with
# the django-storages package, which provides backends for several popular file storage services. If not configured,
# local filesystem storage will be used.
# The configuration parameters for the specified storage backend are defined under the STORAGE_CONFIG setting.
STORAGE_BACKEND = os.environ.get('STORAGE_BACKEND', None)
# A dictionary of configuration parameters for the storage backend configured as STORAGE_BACKEND. The specific
# parameters to be used here are specific to each backend; see the django-storages documentation for more detail.
# If STORAGE_BACKEND is not defined, this setting will be ignored.
STORAGE_CONFIG = os.environ.get('STORAGE_CONFIG', None)
# Time zone (default: UTC)
TIME_ZONE = os.environ.get('TIME_ZONE', 'UTC')