-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathsys.config.src
More file actions
117 lines (117 loc) · 4.05 KB
/
sys.config.src
File metadata and controls
117 lines (117 loc) · 4.05 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
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
[
{hpr, [
{data_dir, "/var/data"},
%% See https://github.com/helium/HIP/blob/main/0102-helium-educational-lns.md
{hpr_free_net_ids, [16#C00053]},
{http_roaming_sender_nsid, <<"${HPR_ROAMING_SENDER_NSID}">>},
{no_routes, []},
{packet_reporter, #{
aws_bucket => <<"${HPR_PACKET_REPORTER_AWS_BUCKET}">>,
aws_bucket_region => <<"${HPR_PACKET_REPORTER_AWS_BUCKET_REGION}">>,
report_interval => 300_000,
report_max_size => 50_000_000
}},
{iot_config_service, #{
transport => "${HPR_IOT_CONFIG_TRANSPORT}",
host => "${HPR_IOT_CONFIG_HOST}",
port => "${HPR_IOT_CONFIG_PORT}"
}},
{iot_location_service, #{
transport => "${HPR_IOT_LOCATION_TRANSPORT}",
host => "${HPR_IOT_LOCATION_HOST}",
port => "${HPR_IOT_LOCATION_PORT}"
}},
{downlink_service, #{
transport => "${HPR_DOWNLINK_SERVICE_TRANSPORT}",
host => "${HPR_DOWNLINK_SERVICE_HOST}",
port => "${HPR_DOWNLINK_SERVICE_PORT}"
}},
{multi_buy_enabled, ${HPR_MULTI_BUY_ENABLED}},
{multi_buy_service, #{
transport => "${HPR_MULTI_BUY_SERVICE_TRANSPORT}",
host => "${HPR_MULTI_BUY_SERVICE_HOST}",
port => "${HPR_MULTI_BUY_SERVICE_PORT}"
}},
{routing_cache_timeout_secs, 15},
{routing_cache_window_secs, 120},
{devaddr_cache_ttl_ms, 43200000},
{ics_stream_worker_checkpoint_secs, 300}
]},
{aws_credentials, [
{credential_providers, [aws_credentials_env, aws_credentials_ec2]}
%% uncomment for env usage
%% {aws_access_key_id, "${HPR_PACKET_REPORTER_AWS_KEY}"},
%% {aws_secret_access_key, "${HPR_PACKET_REPORTER_AWS_SECRET}"},
%% {aws_default_region, "${HPR_PACKET_REPORTER_AWS_REGION}"}
]},
{chatterbox, [
{client_initial_window_size, 16777216},
{server_initial_window_size, 16777216}
]},
{grpcbox, [
{listen_opts, #{port => 8080, ip => {0, 0, 0, 0}}},
{servers, [
#{
grpc_opts => #{
service_protos => [packet_router_pb],
services => #{
'helium.packet_router.packet' => hpr_packet_router_service
}
},
transport_opts => #{ssl => false},
listen_opts => #{
port => 8080,
ip => {0, 0, 0, 0}
},
pool_opts => #{size => 500},
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
}
}
]}
]},
{lager, [
{suppress_supervisor_start_stop, true},
{log_root, "/var/log/hpr"},
{crash_log, "crash.log"},
{handlers, [
{lager_file_backend, [
{file, "info.log"},
{level, info},
{size, 0},
{date, "$D0"},
{count, 7},
{formatter_config, [
"time=",
date,
"T",
time,
" lvl=",
severity_upper,
" ",
metadata,
" msg=\"",
message,
"\"",
"\n"
]}
]}
]}
]},
{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, port_count]}
]}
].