|
6 | 6 |
|
7 | 7 | get_settings() ->
|
8 | 8 | #{ubidots_cache_type =>
|
9 |
| - list_to_atom(os:getenv("EMQX_RETAINER__UBIDOTS_CACHE__TYPE", "single")), |
| 9 | + list_to_atom(os:getenv("UBIDOTS_EMQX_RETAINER__UBIDOTS_CACHE__TYPE", "single")), |
10 | 10 | ubidots_cache_host_name =>
|
11 |
| - os:getenv("EMQX_RETAINER__UBIDOTS_CACHE__HOST_NAME", "127.0.0.1"), |
| 11 | + os:getenv("UBIDOTS_EMQX_RETAINER__UBIDOTS_CACHE__HOST_NAME", "127.0.0.1"), |
12 | 12 | ubidots_cache_port =>
|
13 |
| - list_to_integer(os:getenv("EMQX_RETAINER__UBIDOTS_CACHE__PORT", "6379")), |
| 13 | + list_to_integer(os:getenv("UBIDOTS_EMQX_RETAINER__UBIDOTS_CACHE__PORT", "6379")), |
14 | 14 | ubidots_cache_database =>
|
15 |
| - list_to_integer(os:getenv("EMQX_RETAINER__UBIDOTS_CACHE__DATABASE", "1")), |
| 15 | + list_to_integer(os:getenv("UBIDOTS_EMQX_RETAINER__UBIDOTS_CACHE__DATABASE", "1")), |
16 | 16 | ubidots_cache_password => os:getenv("EMQX_RETAINER__UBIDOTS_CACHE__PASSWORD", ""),
|
17 | 17 | ubidots_cache_server =>
|
18 |
| - os:getenv("EMQX_RETAINER__UBIDOTS_CACHE__SERVER", "localhost:6379"), |
| 18 | + os:getenv("UBIDOTS_EMQX_RETAINER__UBIDOTS_CACHE__SERVER", "localhost:6379"), |
19 | 19 | ubidots_cache_pool_size =>
|
20 |
| - list_to_integer(os:getenv("EMQX_RETAINER__UBIDOTS_CACHE__POOL_SIZE", "10")), |
| 20 | + list_to_integer(os:getenv("UBIDOTS_EMQX_RETAINER__UBIDOTS_CACHE__POOL_SIZE", "10")), |
21 | 21 | ubidots_cache_pool_type =>
|
22 |
| - list_to_atom(os:getenv("EMQX_RETAINER__UBIDOTS_CACHE__POOL_TYPE", "round_robin")), |
| 22 | + list_to_atom(os:getenv("UBIDOTS_EMQX_RETAINER__UBIDOTS_CACHE__POOL_TYPE", "round_robin")), |
23 | 23 | ubidots_cache_reconnect =>
|
24 |
| - list_to_integer(os:getenv("EMQX_RETAINER__UBIDOTS_CACHE__RECONNECT", "3")), |
| 24 | + list_to_integer(os:getenv("UBIDOTS_EMQX_RETAINER__UBIDOTS_CACHE__RECONNECT", "3")), |
25 | 25 | reactor_cache_type =>
|
26 |
| - list_to_atom(os:getenv("EMQX_RETAINER__REACTOR_CACHE__TYPE", "single")), |
| 26 | + list_to_atom(os:getenv("UBIDOTS_EMQX_RETAINER__REACTOR_CACHE__TYPE", "single")), |
27 | 27 | reactor_cache_host_name =>
|
28 |
| - os:getenv("EMQX_RETAINER__REACTOR_CACHE__HOST_NAME", "127.0.0.1"), |
| 28 | + os:getenv("UBIDOTS_EMQX_RETAINER__REACTOR_CACHE__HOST_NAME", "127.0.0.1"), |
29 | 29 | reactor_cache_port =>
|
30 |
| - list_to_integer(os:getenv("EMQX_RETAINER__REACTOR_CACHE__PORT", "6379")), |
| 30 | + list_to_integer(os:getenv("UBIDOTS_EMQX_RETAINER__REACTOR_CACHE__PORT", "6379")), |
31 | 31 | reactor_cache_database =>
|
32 |
| - list_to_integer(os:getenv("EMQX_RETAINER__REACTOR_CACHE__DATABASE", "2")), |
33 |
| - reactor_cache_password => os:getenv("EMQX_RETAINER__REACTOR_CACHE__PASSWORD", ""), |
| 32 | + list_to_integer(os:getenv("UBIDOTS_EMQX_RETAINER__REACTOR_CACHE__DATABASE", "2")), |
| 33 | + reactor_cache_password => os:getenv("UBIDOTS_EMQX_RETAINER__REACTOR_CACHE__PASSWORD", ""), |
34 | 34 | reactor_cache_server =>
|
35 |
| - os:getenv("EMQX_RETAINER__REACTOR_CACHE__SERVER", "localhost:6379"), |
| 35 | + os:getenv("UBIDOTS_EMQX_RETAINER__REACTOR_CACHE__SERVER", "localhost:6379"), |
36 | 36 | reactor_cache_pool_type =>
|
37 |
| - list_to_atom(os:getenv("EMQX_RETAINER__REACTOR_CACHE__POOL_TYPE", "round_robin")), |
| 37 | + list_to_atom(os:getenv("UBIDOTS_EMQX_RETAINER__REACTOR_CACHE__POOL_TYPE", "round_robin")), |
38 | 38 | reactor_cache_pool_size =>
|
39 |
| - list_to_integer(os:getenv("EMQX_RETAINER__REACTOR_CACHE__POOL_SIZE", "10")), |
| 39 | + list_to_integer(os:getenv("UBIDOTS_EMQX_RETAINER__REACTOR_CACHE__POOL_SIZE", "10")), |
40 | 40 | reactor_cache_reconnect =>
|
41 |
| - list_to_integer(os:getenv("EMQX_RETAINER__REACTOR_CACHE__RECONNECT", "3"))}. |
| 41 | + list_to_integer(os:getenv("UBIDOTS_EMQX_RETAINER__REACTOR_CACHE__RECONNECT", "3"))}. |
0 commit comments