fix config
This commit is contained in:
parent
f3ca66cfe9
commit
63afd69162
@ -1,6 +1,6 @@
|
||||
[
|
||||
{efka, [
|
||||
{dets_dir, "/var/lib/efka/dets/"},
|
||||
{dets_dir, "${EFKA_DETS_DIR}"},
|
||||
|
||||
{websocket_server, [
|
||||
{port, 18080},
|
||||
@ -10,7 +10,7 @@
|
||||
]},
|
||||
|
||||
{iot_server, [
|
||||
{host, "localhost"},
|
||||
{host, "${EFKA_IOT_HOST}"},
|
||||
{tls_port, 1443},
|
||||
{udp_port, 18080}
|
||||
]},
|
||||
@ -20,14 +20,14 @@
|
||||
]},
|
||||
|
||||
{auth, [
|
||||
{uuid, "qbxmjyzrkpntfgswaevodhluicqzxplkm"},
|
||||
{token, "zpxlkvmqwnbghytrujsdieofazxcvbnm"}
|
||||
{uuid, "${EFKA_AUTH_UUID}"},
|
||||
{token, "${EFKA_AUTH_TOKEN}"}
|
||||
]}
|
||||
|
||||
]},
|
||||
|
||||
{docker, [
|
||||
{root_dir, "/var/lib/efka/docker/"}
|
||||
{root_dir, "${EFKA_DOCKER_ROOT_DIR}"}
|
||||
]},
|
||||
|
||||
%% 系统日志配置,使用 OTP logger
|
||||
@ -46,10 +46,10 @@
|
||||
#{
|
||||
level => debug,
|
||||
config => #{
|
||||
file => "log/debug.log",
|
||||
max_no_files => 10,
|
||||
max_no_bytes => 524288000
|
||||
},
|
||||
file => "log/debug.log",
|
||||
max_no_files => 10,
|
||||
max_no_bytes => 524288000
|
||||
},
|
||||
formatter => {logger_formatter, #{template => [time, " [", level, "] ", msg, "\n"]}}
|
||||
}
|
||||
}
|
||||
@ -3,7 +3,7 @@
|
||||
-setcookie efka_cookie
|
||||
-kernel start_group false
|
||||
|
||||
-mnesia dir '"/var/lib/efka/mnesia"'
|
||||
-mnesia dir '"${EFKA_MNESIA_DIR}"'
|
||||
-mnesia dump_log_write_threshold 5000
|
||||
-mnesia dc_dump_limit 40
|
||||
|
||||
23
env.file
Normal file
23
env.file
Normal file
@ -0,0 +1,23 @@
|
||||
[dev]
|
||||
EFKA_DETS_DIR="/usr/local/var/lib/efka/dets/"
|
||||
EFKA_IOT_HOST="localhost"
|
||||
EFKA_AUTH_UUID="qbxmjyzrkpntfgswaevodhluicqzxplkm"
|
||||
EFKA_AUTH_TOKEN="zpxlkvmqwnbghytrujsdieofazxcvbnm"
|
||||
EFKA_DOCKER_ROOT_DIR="/usr/local/var/lib/efka/docker/"
|
||||
EFKA_MNESIA_DIR="/usr/local/var/lib/efka/mnesia"
|
||||
|
||||
[test]
|
||||
EFKA_DETS_DIR="/usr/local/var/lib/efka/dets/"
|
||||
EFKA_IOT_HOST="localhost"
|
||||
EFKA_AUTH_UUID="qbxmjyzrkpntfgswaevodhluicqzxplkm"
|
||||
EFKA_AUTH_TOKEN="zpxlkvmqwnbghytrujsdieofazxcvbnm"
|
||||
EFKA_DOCKER_ROOT_DIR="/usr/local/var/lib/efka/docker/"
|
||||
EFKA_MNESIA_DIR="/usr/local/var/lib/efka/mnesia"
|
||||
|
||||
[prod]
|
||||
EFKA_DETS_DIR="/var/lib/efka/dets/"
|
||||
EFKA_IOT_HOST="localhost"
|
||||
EFKA_AUTH_UUID="qbxmjyzrkpntfgswaevodhluicqzxplkm"
|
||||
EFKA_AUTH_TOKEN="zpxlkvmqwnbghytrujsdieofazxcvbnm"
|
||||
EFKA_DOCKER_ROOT_DIR="/var/lib/efka/docker/"
|
||||
EFKA_MNESIA_DIR="/var/lib/efka/mnesia"
|
||||
15
rebar.config
15
rebar.config
@ -16,19 +16,10 @@
|
||||
[efka,
|
||||
sasl]},
|
||||
|
||||
{mode, dev},
|
||||
{mode, prod},
|
||||
|
||||
%% automatically picked up if the files
|
||||
%% exist but can be set manually, which
|
||||
%% is required if the names aren't exactly
|
||||
%% sys.config and vm.args
|
||||
{sys_config, "./config/sys.config"},
|
||||
{vm_args, "./config/vm.args"}
|
||||
|
||||
%% the .src form of the configuration files do
|
||||
%% not require setting RELX_REPLACE_OS_VARS
|
||||
%% {sys_config_src, "./config/sys.config.src"},
|
||||
%% {vm_args_src, "./config/vm.args.src"}
|
||||
{sys_config_src, "./config/sys.config.src"},
|
||||
{vm_args_src, "./config/vm.args.src"}
|
||||
]}.
|
||||
|
||||
{profiles, [{prod, [{relx,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user