Skip to content

Commit 54bf7a3

Browse files
authored
Merge pull request #695 from ryanmerolle/graphql
Explicitly set GRAPHQL_ENABLED
2 parents ff20e4f + 52876be commit 54bf7a3

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

configuration/configuration.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,9 @@ def _read_secret(secret_name, default = None):
147147
# by anonymous users. List models in the form `<app>.<model>`. Add '*' to this list to exempt all models.
148148
EXEMPT_VIEW_PERMISSIONS = list(filter(None, environ.get('EXEMPT_VIEW_PERMISSIONS', '').split(' ')))
149149

150+
# Enable GraphQL API.
151+
GRAPHQL_ENABLED = environ.get('GRAPHQL_ENABLED', 'True').lower() == 'true'
152+
150153
# Enable custom logging. Please see the Django documentation for detailed guidance on configuring custom logs:
151154
# https://docs.djangoproject.com/en/stable/topics/logging/
152155
LOGGING = {}

env/netbox.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ EMAIL_USERNAME=netbox
1414
# EMAIL_USE_SSL and EMAIL_USE_TLS are mutually exclusive, i.e. they can't both be `true`!
1515
EMAIL_USE_SSL=false
1616
EMAIL_USE_TLS=false
17+
GRAPHQL_ENABLED=true
1718
HOUSEKEEPING_INTERVAL=86400
1819
MAX_PAGE_SIZE=1000
1920
MEDIA_ROOT=/opt/netbox/netbox/media

0 commit comments

Comments
 (0)