-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathsys.config
More file actions
110 lines (110 loc) · 3.28 KB
/
sys.config
File metadata and controls
110 lines (110 loc) · 3.28 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
[
{hpr, [
{data_dir, "/var/data"},
%% See https://github.com/helium/HIP/blob/main/0102-helium-educational-lns.md
{hpr_free_net_ids, [16#C00053]},
{no_routes, []},
{packet_reporter, #{
aws_bucket => <<"test-bucket">>,
report_interval => 300_000,
report_max_size => 50_000_000
}},
{iot_config_service, #{
transport => http,
host => "localhost",
port => 50051
}},
{iot_location_service, #{
transport => http,
host => "localhost",
port => 50051
}},
{downlink_service, #{
transport => http,
host => "localhost",
port => 8080
}},
{multi_buy_enabled, true},
{multi_buy_service, #{
transport => http,
host => "localhost",
port => 8081
}}
]},
{aws_credentials, [
{credential_providers, [aws_credentials_env, aws_credentials_ec2]},
%% comment out for ec2 usage
{aws_access_key_id, "testkey"},
{aws_secret_access_key, "testsecret"},
{aws_default_region, "us-west-2"}
]},
{chatterbox, [
{client_initial_window_size, 16777216},
{server_initial_window_size, 16777216}
]},
{grpcbox, [
{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]}
]}
].