Skip to content

Commit dad0608

Browse files
committed
Rename example.py to extra.py
And add some comments to the the file that hopefully guide the user.
1 parent dc77f1a commit dad0608

File tree

4 files changed

+62
-50
lines changed

4 files changed

+62
-50
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ docker-compose.override.yml
55
*.pem
66
configuration/*
77
!configuration/configuration.py
8-
!configuration/example.py
8+
!configuration/extra.py
99
configuration/ldap/*
1010
!configuration/ldap/ldap_config.py

configuration/configuration.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
####
2+
## We recommend to not edit this file.
3+
## Create separate files to overwrite the settings.
4+
## See `extra.py` as an example.
5+
####
6+
17
import re
28

39
from os.path import dirname, abspath, join

configuration/example.py

Lines changed: 0 additions & 49 deletions
This file was deleted.

configuration/extra.py

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
####
2+
## This file contains extra configuration options that can't be configured
3+
## directly through environment variables.
4+
####
5+
6+
## Specify one or more name and email address tuples representing NetBox administrators. These people will be notified of
7+
## application errors (assuming correct email settings are provided).
8+
# ADMINS = [
9+
# # ['John Doe', 'jdoe@example.com'],
10+
# ]
11+
12+
13+
## URL schemes that are allowed within links in NetBox
14+
# ALLOWED_URL_SCHEMES = (
15+
# 'file', 'ftp', 'ftps', 'http', 'https', 'irc', 'mailto', 'sftp', 'ssh', 'tel', 'telnet', 'tftp', 'vnc', 'xmpp',
16+
# )
17+
18+
19+
## NAPALM optional arguments (see http://napalm.readthedocs.io/en/latest/support/#optional-arguments). Arguments must
20+
## be provided as a dictionary.
21+
# NAPALM_ARGS = {}
22+
23+
24+
## Enable installed plugins. Add the name of each plugin to the list.
25+
# from netbox.configuration.configuration import PLUGINS
26+
# PLUGINS.append('my_plugin')
27+
28+
## Plugins configuration settings. These settings are used by various plugins that the user may have installed.
29+
## Each key in the dictionary is the name of an installed plugin and its value is a dictionary of settings.
30+
# from netbox.configuration.configuration import PLUGINS_CONFIG
31+
# PLUGINS_CONFIG['my_plugin'] = {
32+
# 'foo': 'bar',
33+
# 'buzz': 'bazz'
34+
# }
35+
36+
37+
## Remote authentication support
38+
# REMOTE_AUTH_DEFAULT_PERMISSIONS = {}
39+
40+
41+
## By default uploaded media is stored on the local filesystem. Using Django-storages is also supported. Provide the
42+
## class path of the storage driver in STORAGE_BACKEND and any configuration options in STORAGE_CONFIG. For example:
43+
# STORAGE_BACKEND = 'storages.backends.s3boto3.S3Boto3Storage'
44+
# STORAGE_CONFIG = {
45+
# 'AWS_ACCESS_KEY_ID': 'Key ID',
46+
# 'AWS_SECRET_ACCESS_KEY': 'Secret',
47+
# 'AWS_STORAGE_BUCKET_NAME': 'netbox',
48+
# 'AWS_S3_REGION_NAME': 'eu-west-1',
49+
# }
50+
51+
52+
## This file can contain arbitrary Python code, e.g.:
53+
# from datetime import datetime
54+
# now = datetime.now().strftime("%d/%m/%Y %H:%M:%S")
55+
# BANNER_TOP = f'<marquee width="200px">This instance started on {now}.</marquee>'

0 commit comments

Comments
 (0)