fix config

This commit is contained in:
anlicheng 2026-05-30 16:43:55 +08:00
parent 29f5bfb17c
commit bbe35e3b87
3 changed files with 7 additions and 7 deletions

View File

@ -18,20 +18,20 @@
{port, 18080} {port, 18080}
]}, ]},
{api_url, "${IOT_API_URL:-https://lgsiot.njau.edu.cn/api/v1/taskLog}"} {api_url, "${IOT_API_URL}"}
]}, ]},
{endpoint, [ {endpoint, [
%% 支持的协议 %% 支持的协议
{endpoints, [ {endpoints, [
{root_dir, "${ENDPOINT_ROOT_DIR:-/var/lib/endpoint/database/}"}, {root_dir, "${ENDPOINT_ROOT_DIR}"},
{support_protocols, [ {support_protocols, [
http http
]} ]}
]}, ]},
{endpoint_log, [ {endpoint_log, [
{path, "${ENDPOINT_LOG_PATH:-/var/lib/endpoint/endpoint_log}"}, {path, "${ENDPOINT_LOG_PATH}"},
{max_bytes, ${ENDPOINT_LOG_MAX_BYTES:-10485760}}, {max_bytes, ${ENDPOINT_LOG_MAX_BYTES:-10485760}},
{max_files, ${ENDPOINT_LOG_MAX_FILES:-10}} {max_files, ${ENDPOINT_LOG_MAX_FILES:-10}}
]} ]}

View File

@ -5,7 +5,7 @@
+K true +K true
+A 128 +A 128
-mnesia dir '"${IOT_MNESIA_DIR:-/var/lib/iot/mnesia/}"' -mnesia dir '"${IOT_MNESIA_DIR}"'
-mnesia dump_log_write_threshold 50000 -mnesia dump_log_write_threshold 50000
-mnesia dc_dump_limit 40 -mnesia dc_dump_limit 40

View File

@ -1,8 +1,8 @@
[dev] [dev]
IOT_API_URL="http://127.0.0.1:18090/simulator" IOT_API_URL="http://127.0.0.1:18090/simulator"
ENDPOINT_ROOT_DIR="/usr/local/code/database/" ENDPOINT_ROOT_DIR="/usr/local/var/lib/iot/endpoint/"
ENDPOINT_LOG_PATH="/usr/local/code/database/endpoint_log" ENDPOINT_LOG_PATH="/usr/local/var/lib/iot/endpoint_log/"
IOT_MNESIA_DIR="/var/lib/iot/mnesia/" IOT_MNESIA_DIR="/usr/local/var/lib/iot/mnesia/"
[test] [test]
IOT_API_URL="http://127.0.0.1/api/v1" IOT_API_URL="http://127.0.0.1/api/v1"