forked from netbox-community/Device-Type-Library-Import
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
45 lines (38 loc) · 2.11 KB
/
Copy path.env.example
File metadata and controls
45 lines (38 loc) · 2.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
NETBOX_TOKEN=XXXXXXXXX-xxxxxxxxx
NETBOX_URL=https://netbox.example.org
REPO_BRANCH=master
REPO_URL=https://github.com/netbox-community/devicetype-library.git
# Set REPO_URL=local to read REPO_PATH as it stands, with no git operation at all:
# no clone, no fetch, and no .git needed. REPO_PATH must already hold at least one of
# device-types/, module-types/, or rack-types/. REPO_BRANCH is ignored in this mode.
# Use it for air-gapped runs or a library you version yourself.
#REPO_URL=local
# Local path where the device-type library repository is cloned.
# Defaults to a "repo" directory in the project root when not set.
# Use an absolute path or a path relative to where you run the script.
#REPO_PATH=./repo
# SSL options — choose one approach if your NetBox uses a self-signed or private CA:
#
# Option A (recommended): point requests at your CA bundle so the certificate
# is validated properly. Set REQUESTS_CA_BUNDLE to the path of your PEM-encoded
# CA certificate or bundle file. This is a standard requests/urllib3 variable
# and is also respected by most Python HTTP clients.
# REQUESTS_CA_BUNDLE=/etc/ssl/certs/my-internal-ca.pem
#
# Option B (insecure – dev/test only): disable certificate verification entirely.
# IGNORE_SSL_ERRORS=False is the secure default; set to True only for local/dev use.
# WARNING: This bypasses all certificate validation and exposes connections to
# man-in-the-middle attacks. Never enable in production environments.
IGNORE_SSL_ERRORS=False
# Optional: restrict import to specific device type slugs
#SLUGS=c9300-48u isr4431 isr4331
# Performance tuning — adjust for your NetBox instance size and network
# Number of items per GraphQL page (default: 5000).
# Values up to 25000 have been tested successfully on a default NetBox
# instance with minimal extra latency. Most NetBox installs cap
# MAX_PAGE_SIZE at 1000 by default; the client detects server-side
# clamping and paginates accordingly.
#GRAPHQL_PAGE_SIZE=5000
# Number of threads for concurrent component preloading (default: 8).
# Reduce on smaller instances to lower load; increase for faster imports.
#PRELOAD_THREADS=8