-
Notifications
You must be signed in to change notification settings - Fork 32
/
.env-template
76 lines (61 loc) · 3.08 KB
/
.env-template
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# OUI used by router (see https://developer.helium.com/blockchain/blockchain-cli#oui)
ROUTER_OUI=999
# Set Routers NAT info
ROUTER_NAT_INTERNAL_IP=XX.XXX.XX.XXX
ROUTER_NAT_INTERNAL_PORT=2154
ROUTER_NAT_EXTERNAL_IP=XX.XXX.XX.XXX
ROUTER_NAT_EXTERNAL_PORT=2154
# STATE CHANNELS
# FYI: There is a cost to open a state channel (about 35k DC)
# Current min: 15 blocks, max abbout 5000 blocks. Default: 25 blocks when not set
ROUTER_SC_EXPIRATION_INTERVAL=25
# Minimum distance state channels can expire within another expiration
# default: 15 when not set
ROUTER_SC_EXPIRATION_BUFFER=15
# Data credit use to fund a state channel. (note that the amount will be double for overage)
# default: 100 when not set
ROUTER_SC_OPEN_DC_AMOUNT=100
# CONSOLE
# Console's connection info (see https://github.com/helium/console)
ROUTER_CONSOLE_ENDPOINT=http://helium_console:4000
ROUTER_CONSOLE_WS_ENDPOINT=ws://helium_console:4000/socket/router/websocket
ROUTER_CONSOLE_SECRET=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
# Public facing endpoint to POST downlinks for devices
ROUTER_CONSOLE_DOWNLINK_ENDPOINT=http://helium_console:4000
# Turn on/off xor filter worker (anything else than true is off, disabled by default)
# This allows to publish app eui / dev eui for join packets
ROUTER_XOR_FILTER_WORKER=false
# Max time to wait for uplinks in ms
# Default: 200ms blocks when not set
ROUTER_FRAME_TIMEOUT=500
# Max time to wait for uplinks in ms, only for disco mode device
# Default: 8 seconds blocks when not set
ROUTER_DISCO_FRAME_TIMEOUT=8000
# Turn on/off HTTP integration url checks like DNS, IP... (anything else than false is on, enabled by default)
ROUTER_HTTP_CHANNEL_URL_CHECK=true
# Set max number for downlink allowed to be queued for a device (Defaults to 20).
ROUTER_DEVICE_QUEUE_SIZE_LIMIT=20
# Charge organization when no offer is found (Default to: true)
ROUTER_CHARGE_WHEN_NO_OFFER=true
# Set resolution at which device addresses are alocated (Default to 3)
# Ex: resolution 3 holds 41162 indexes and your Router has an OUI with 8 device addresses
# It means that it can support up to 329296 devices before seeing some potential conflicts.
# Note:
# - Conflicts are still possible but less likely.
# - Resolution 3 or 4 is recommended as they will provide big enough hexagons to avoid conflicts.
# See https://h3geo.org/docs/core-library/restable/ for resolution data
ROUTER_DEVADDR_ALLOCATE_RESOLUTION=3
# Set http port for Prometheus handler to come scrape metrics (Default to port 3000)
ROUTER_METRICS_PORT=3000
# The first 7 bits of a DevAddr as an integer. (default: 72 :: $H)
# __DISCLAIMER__:
# This setting _only_ works for NetIDs of Type-0.
# The integer represents the first 7-bits of a DevAddr. NOT the Network ID.
# Change at your own discretion, this may lead to instability in assigning DevAddrs to devices.
ROUTER_DEVADDR_PREFIX=72
# Charge an Organization for join requests (default: true)
ROUTER_CHARGE_JOINS=true
# Charge an org for a packet received late or replayed (default: false).
ROUTER_CHARGE_LATE_PACKETS=false
# Flag to disable preferred hotspot feature (default: false).
ROUTER_DISABLE_PREFERRED_HOTSPOT=true