diff --git a/config/netbox.env.example b/config/netbox.env.example index e6cce09ff..665347ec9 100644 --- a/config/netbox.env.example +++ b/config/netbox.env.example @@ -1,20 +1,30 @@ +ENFORCE_GLOBAL_UNIQUE=False +EXEMPT_VIEW_PERMISSIONS=* + CORS_ORIGIN_ALLOW_ALL=True # If using the NetBox interface to create API tokens, set this # (see https://docs.djangoproject.com/en/4.1/ref/settings/#csrf-trusted-origins) # CSRF_TRUSTED_ORIGINS=https://malcolm.example.org CSRF_TRUSTED_ORIGINS=http://* https://* + +# Remote authentication allows NetBox to automatically create user accounts from NGINX +# https://netboxlabs.com/docs/netbox/en/stable/configuration/remote-authentication REMOTE_AUTH_ENABLED=True REMOTE_AUTH_BACKEND=netbox.authentication.RemoteUserBackend REMOTE_AUTH_HEADER=HTTP_X_REMOTE_AUTH +REMOTE_AUTH_GROUP_HEADER=HTTP_X_REMOTE_AUTH_GROUP +REMOTE_AUTH_USER_EMAIL=HTTP_X_REMOTE_AUTH_EMAIL +REMOTE_AUTH_USER_FIRST_NAME=HTTP_X_REMOTE_AUTH_FIRST_NAME +REMOTE_AUTH_USER_LAST_NAME=HTTP_X_REMOTE_AUTH_LAST_NAME REMOTE_AUTH_AUTO_CREATE_USER=True +REMOTE_AUTH_AUTO_CREATE_GROUPS=True +REMOTE_AUTH_GROUP_SYNC_ENABLED=False REMOTE_AUTH_DEFAULT_GROUPS=standard -REMOTE_AUTH_DEFAULT_PERMISSIONS=standard_permission REMOTE_AUTH_STAFF_GROUPS=administrator REMOTE_AUTH_STAFF_USERS= REMOTE_AUTH_SUPERUSER_GROUPS=administrator REMOTE_AUTH_SUPERUSERS= -ENFORCE_GLOBAL_UNIQUE=False -EXEMPT_VIEW_PERMISSIONS=* + DB_HOST=netbox-postgres DB_NAME=netbox EMAIL_FROM=netbox@bar.com