1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Cleaned up configuration settings

This commit is contained in:
Jeremy Stretch
2016-05-24 11:46:55 -04:00
parent 651f97af81
commit f43184695b
3 changed files with 125 additions and 28 deletions

View File

@ -4,6 +4,15 @@
# #
#########################
# PostgreSQL database configuration.
DATABASE = {
'NAME': 'netbox', # Database name
'USER': 'netbox', # PostgreSQL username
'PASSWORD': '', # PostgreSQL password
'HOST': 'localhost', # Database server
'PORT': '', # Database port (leave blank for default)
}
# This key is used for secure generation of random numbers and strings. It must never be exposed outside of this file.
# For optimal security, SECRET_KEY should be at least 50 characters in length and contain a mix of letters, numbers, and
# symbols. NetBox will not run without this defined. For more information, see
@ -14,18 +23,6 @@ SECRET_KEY = ''
# E.g. ALLOWED_HOSTS = ['netbox.yourdomain.com']
ALLOWED_HOSTS = []
# PostgreSQL database configuration.
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'netbox', # Database name
'USER': 'netbox', # PostgreSQL username
'PASSWORD': '', # PostgreSQL password
'HOST': 'localhost', # Database server
'PORT': '', # Database port (leave blank for default)
}
}
#########################
# #
@ -33,16 +30,11 @@ DATABASES = {
# #
#########################
# Setting this to True will display a "maintenance mode" banner at the top of every page.
MAINTENANCE_MODE = False
# Time zone (default: UTC)
TIME_ZONE = 'UTC'
# If enabled, NetBox will run with debugging turned on. This should only be used for development or troubleshooting.
#
# NEVER ENABLE DEBUGGING ON A PRODUCTION SYSTEM!
DEBUG = False
# If True, user authentication will be required for all site access. If False, unauthenticated users will be able to
# access NetBox but not make any changes.
# Setting this to True will permit only authenticated users to access any part of NetBox. By default, anonymous users
# are permitted to access most data in NetBox (excluding secrets) but not make any changes.
LOGIN_REQUIRED = False
# Determine how many objects to display per page within a list. (Default: 50)
@ -51,3 +43,6 @@ PAGINATE_COUNT = 50
# Credentials that NetBox will use to access live devices.
NETBOX_USERNAME = ''
NETBOX_PASSWORD = ''
# Setting this to True will display a "maintenance mode" banner at the top of every page.
MAINTENANCE_MODE = False