-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathsys.config.src
168 lines (167 loc) · 6.99 KB
/
sys.config.src
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
[
{libp2p, [
{random_peer_pred, fun router_utils:random_non_miner_predicate/1},
{use_dns_for_seeds, true},
{seed_dns_cname, "seed.helium.io"},
{seed_config_dns_name, "_seed_config.helium.io"},
{nat_map, #{
{"${ROUTER_NAT_INTERNAL_IP}", "${ROUTER_NAT_INTERNAL_PORT}"} =>
{"${ROUTER_NAT_EXTERNAL_IP}", "${ROUTER_NAT_EXTERNAL_PORT}"}
}},
{max_tcp_connections, 500000}
]},
{blockchain, [
{base_dir, "/var/data"},
{update_dir, "update"},
{port, 2154},
{seed_nodes,
"/ip4/18.217.27.26/tcp/2154,/ip4/35.161.222.43/tcp/443,/ip4/99.80.158.114/tcp/2154,/ip4/3.66.43.167/tcp/443,/ip4/52.220.121.45/tcp/2154,/ip4/54.207.252.240/tcp/443,/ip4/3.34.10.207/tcp/2154,/ip4/13.238.174.45/tcp/443"},
{snap_source_base_url, "https://snapshots.helium.wtf/mainnet"},
{fetch_latest_from_snap_source, true},
{honor_quick_sync, true},
{blessed_snapshot_block_height, 1469991},
{blessed_snapshot_block_hash,
<<228, 109, 63, 62, 128, 210, 153, 145, 214, 101, 72, 249, 132, 71, 169, 232, 182, 113,
179, 150, 254, 35, 44, 113, 116, 77, 197, 127, 48, 10, 6, 43>>},
{quick_sync_mode, blessed_snapshot},
{disable_gateway_cache, true},
{sync_timeout_mins, 1},
{max_inbound_connections, 12},
{outbound_gossip_connections, 4},
{sc_packet_handler, router_device_routing},
{sc_sup_type, server},
{sc_hook_close_submit, router_sc_worker}
]},
{router, [
{devaddr_prefix, "${ROUTER_DEVADDR_PREFIX}"},
{is_chain_dead, "${ROUTER_IS_CHAIN_DEAD}"},
{disable_preferred_hotspot, "${ROUTER_DISABLE_PREFERRED_HOTSPOT}"},
{grpc_port, ${GRPC_PORT:-8080}},
{max_v8_context, 1000},
{oui, "${ROUTER_OUI}"},
{sc_open_dc_amount, "${ROUTER_SC_OPEN_DC_AMOUNT}"},
{sc_expiration_interval, "${ROUTER_SC_EXPIRATION_INTERVAL}"},
{sc_expiration_buffer, "${ROUTER_SC_EXPIRATION_BUFFER}"},
{router_console_api, [
{endpoint, <<"${ROUTER_CONSOLE_ENDPOINT}">>},
{ws_endpoint, <<"${ROUTER_CONSOLE_WS_ENDPOINT}">>},
{downlink_endpoint, <<"${ROUTER_CONSOLE_DOWNLINK_ENDPOINT}">>},
{secret, <<"${ROUTER_CONSOLE_SECRET}">>}
]},
{router_xor_filter_worker, "${ROUTER_XOR_FILTER_WORKER}"},
{ics, #{
transport => https,
host => "alb.iot.mainnet.helium.io",
port => 6080,
eui_enabled => "${ROUTER_ICS_EUI_ENABLED}",
skf_enabled => "${ROUTER_ICS_SKF_ENABLED}",
devaddr_enabled => "${ROUTER_ICS_DEVADDR_ENABLED}",
route_id => "${ROUTER_ICS_ROUTE_ID}",
reconcile_on_startup => true
}},
{config_service_max_timeout_attempt, 5},
{config_service_batch_sleep_ms, 500},
{frame_timeout, "${ROUTER_FRAME_TIMEOUT}"},
{disco_frame_timeout, "${ROUTER_DISCO_FRAME_TIMEOUT}"},
{router_http_channel_url_check, "${ROUTER_HTTP_CHANNEL_URL_CHECK}"},
{device_queue_size_limit, "${ROUTER_DEVICE_QUEUE_SIZE_LIMIT}"},
{charge_when_no_offer, "${ROUTER_CHARGE_WHEN_NO_OFFER}"},
{devaddr_allocate_resolution, "${ROUTER_DEVADDR_ALLOCATE_RESOLUTION}"},
{metrics_port, "${ROUTER_METRICS_PORT}"},
{denylist_keys, ["1SbEYKju337P6aYsRd9DT2k4qgK5ZK62kXbSvnJgqeaxK3hqQrYURZjL"]},
{denylist_url, "https://api.github.com/repos/helium/denylist/releases/latest"},
{charge_joins, "${ROUTER_CHARGE_JOINS}"},
{charge_late_packets, "${ROUTER_CHARGE_LATE_PACKETS}"}
]},
{grpcbox, [
{client, #{
channels => [
{ics_channel, [{https, "alb.iot.mainnet.helium.io", 6080, []}], #{}},
{ics_location_channel, [{https, "alb.iot.mainnet.helium.io", 6080, []}], #{}}
]
}},
{servers, [
#{
grpc_opts => #{
service_protos => [router_pb, packet_router_pb],
services => #{
'helium.packet_router.packet' => helium_packet_service
}
},
transport_opts => #{ssl => false},
listen_opts => #{
port => 8080,
ip => {0, 0, 0, 0}
},
pool_opts => #{size => 100},
server_opts => #{
header_table_size => 4096,
enable_push => 1,
max_concurrent_streams => unlimited,
initial_window_size => 16777216,
max_frame_size => 16384,
max_header_list_size => unlimited
}
}
]}
]},
{chatterbox, [
{client_initial_window_size, 16777216},
{server_initial_window_size, 16777216}
]},
{prometheus, [
{collectors, [
prometheus_boolean,
prometheus_counter,
prometheus_gauge,
prometheus_histogram,
prometheus_vm_memory_collector,
prometheus_vm_system_info_collector
]},
{vm_system_info_collector_metrics, [process_count]}
]},
{lager, [
{suppress_supervisor_start_stop, true},
{log_root, "/var/data/log"},
{crash_log, "crash.log"},
{handlers, [
{lager_file_backend, [
{file, "router.log"},
{level, warning},
{size, 0},
{date, "$D0"},
{count, 7},
{formatter_config, [
"[",
date,
" ",
time,
"] ",
pid,
" [",
severity,
"]",
{device_id, [" [", device_id, "]"], ""},
" [",
{module, ""},
{function, [":", function], ""},
{line, [":", line], ""},
"] ",
message,
"\n"
]}
]}
]},
{traces, [
{{lager_file_backend, "router.log"}, [{application, router}], info},
{{lager_file_backend, "router.log"}, [{module, router_console_api}], info},
{{lager_file_backend, "router.log"}, [{module, router_device_routing}], info},
{{lager_file_backend, "router.log"}, [{module, helium_packet_service}], info},
{{lager_file_backend, "router.log"}, [{module, router_ics_eui_worker}], info},
{{lager_file_backend, "router.log"}, [{module, router_ics_route_get_euis_handler}], info},
{{lager_file_backend, "router.log"}, [{module, router_ics_skf_list_handler}], info},
{{lager_file_backend, "router.log"}, [{module, router_ics_skf_worker}], info},
{{lager_file_backend, "router.log"}, [{module, router_ics_gateway_location_worker}], info}
]}
]}
].