From bbe35e3b878ca8fb1b61bd089fb2a7ae471544a7 Mon Sep 17 00:00:00 2001 From: anlicheng <244108715@qq.com> Date: Sat, 30 May 2026 16:43:55 +0800 Subject: [PATCH] fix config --- config/sys.config.src | 6 +++--- config/vm.args.src | 2 +- env.file | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/config/sys.config.src b/config/sys.config.src index bb83096..3f6ba57 100644 --- a/config/sys.config.src +++ b/config/sys.config.src @@ -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}} ]} diff --git a/config/vm.args.src b/config/vm.args.src index a243af6..799543b 100644 --- a/config/vm.args.src +++ b/config/vm.args.src @@ -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 diff --git a/env.file b/env.file index d06421a..3d3d953 100644 --- a/env.file +++ b/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"