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
|
<?php
return [
'group' => 'www-data',
'files_mode' => 0664,
'dirs_mode' => 0775,
'is_dev' => true,
'static_public_path' => '/assets',
'openwrt_ip' => '192.168.1.1',
'inverterd_host' => '192.168.1.2',
'inverterd_port' => 8305,
'pump_host' => '192.168.1.2',
'pump_port' => 8307,
'temphumd_servers' => [
// fill here, example:
'hall' => ['192.168.1.3', 8306, 'Big Hall'/*, optional: config::TEMPHUMD_NO_HUM */],
],
// modem names (array keys) must match ipset names and
// routing table names on the openwrt router
//
// the order of the keys in the array must be the same
// as the order in which fwmark iptables rules are applied
'modems' => [
'modem-example' => [
'ip' => '1.2.3.4',
'label' => 'Modem Name',
'short_label' => 'Mname',
'legacy_token_auth' => false,
],
],
// 'routing_smallhome_ip' => 'fill_me',
// 'routing_default' => 'fill_me',
'debug_backtrace' => true,
'debug_file' => '.debug.log',
'twig_cache' => true,
'templates' => [
'web' => [
'root' => 'templates-web',
'cache' => 'cache/templates-web',
],
],
'static' => [
'app.css' => 12,
'app.js' => 7,
'polyfills.js' => 1,
'modem.js' => 2,
'inverter.js' => 2,
'h265webjs-dist/h265webjs-v20221106.js' => 2,
],
'cam_hls_access_key' => '',
'cam_hls_proto' => 'http', // bool|callable
'cam_hls_host' => '192.168.1.1', // bool|callable
'cam_list' => [
'low' => [
// fill me with names
],
'high' => [
// fill me with names
],
'labels' => [
// assoc array
],
],
'vk_sms_checker' => [
'telegram_token' => '',
'telegram_chat_id' => '',
'modem_name' => '', // reference to the 'modems' array
],
'database_path' => getenv('HOME').'/.config/homekit.localwebsite.sqlite3',
'auth_cookie_host' => '',
'auth_need' => false, // bool|callable
'auth_pw_salt' => '',
'grafana_sensors_url' => '',
'grafana_inverter_url' => '',
'ipcam_server_api_addr' => '',
'dhcp_hostname_overrides' => [],
];
|