fix config
This commit is contained in:
parent
29f5bfb17c
commit
bbe35e3b87
@ -18,20 +18,20 @@
|
||||
{port, 18080}
|
||||
]},
|
||||
|
||||
{api_url, "${IOT_API_URL:-https://lgsiot.njau.edu.cn/api/v1/taskLog}"}
|
||||
{api_url, "${IOT_API_URL}"}
|
||||
]},
|
||||
|
||||
{endpoint, [
|
||||
%% 支持的协议
|
||||
{endpoints, [
|
||||
{root_dir, "${ENDPOINT_ROOT_DIR:-/var/lib/endpoint/database/}"},
|
||||
{root_dir, "${ENDPOINT_ROOT_DIR}"},
|
||||
{support_protocols, [
|
||||
http
|
||||
]}
|
||||
]},
|
||||
|
||||
{endpoint_log, [
|
||||
{path, "${ENDPOINT_LOG_PATH:-/var/lib/endpoint/endpoint_log}"},
|
||||
{path, "${ENDPOINT_LOG_PATH}"},
|
||||
{max_bytes, ${ENDPOINT_LOG_MAX_BYTES:-10485760}},
|
||||
{max_files, ${ENDPOINT_LOG_MAX_FILES:-10}}
|
||||
]}
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
+K true
|
||||
+A 128
|
||||
|
||||
-mnesia dir '"${IOT_MNESIA_DIR:-/var/lib/iot/mnesia/}"'
|
||||
-mnesia dir '"${IOT_MNESIA_DIR}"'
|
||||
-mnesia dump_log_write_threshold 50000
|
||||
-mnesia dc_dump_limit 40
|
||||
|
||||
|
||||
6
env.file
6
env.file
@ -1,8 +1,8 @@
|
||||
[dev]
|
||||
IOT_API_URL="http://127.0.0.1:18090/simulator"
|
||||
ENDPOINT_ROOT_DIR="/usr/local/code/database/"
|
||||
ENDPOINT_LOG_PATH="/usr/local/code/database/endpoint_log"
|
||||
IOT_MNESIA_DIR="/var/lib/iot/mnesia/"
|
||||
ENDPOINT_ROOT_DIR="/usr/local/var/lib/iot/endpoint/"
|
||||
ENDPOINT_LOG_PATH="/usr/local/var/lib/iot/endpoint_log/"
|
||||
IOT_MNESIA_DIR="/usr/local/var/lib/iot/mnesia/"
|
||||
|
||||
[test]
|
||||
IOT_API_URL="http://127.0.0.1/api/v1"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user