fix config
This commit is contained in:
parent
f3ca66cfe9
commit
63afd69162
@ -1,6 +1,6 @@
|
|||||||
[
|
[
|
||||||
{efka, [
|
{efka, [
|
||||||
{dets_dir, "/var/lib/efka/dets/"},
|
{dets_dir, "${EFKA_DETS_DIR}"},
|
||||||
|
|
||||||
{websocket_server, [
|
{websocket_server, [
|
||||||
{port, 18080},
|
{port, 18080},
|
||||||
@ -10,7 +10,7 @@
|
|||||||
]},
|
]},
|
||||||
|
|
||||||
{iot_server, [
|
{iot_server, [
|
||||||
{host, "localhost"},
|
{host, "${EFKA_IOT_HOST}"},
|
||||||
{tls_port, 1443},
|
{tls_port, 1443},
|
||||||
{udp_port, 18080}
|
{udp_port, 18080}
|
||||||
]},
|
]},
|
||||||
@ -20,14 +20,14 @@
|
|||||||
]},
|
]},
|
||||||
|
|
||||||
{auth, [
|
{auth, [
|
||||||
{uuid, "qbxmjyzrkpntfgswaevodhluicqzxplkm"},
|
{uuid, "${EFKA_AUTH_UUID}"},
|
||||||
{token, "zpxlkvmqwnbghytrujsdieofazxcvbnm"}
|
{token, "${EFKA_AUTH_TOKEN}"}
|
||||||
]}
|
]}
|
||||||
|
|
||||||
]},
|
]},
|
||||||
|
|
||||||
{docker, [
|
{docker, [
|
||||||
{root_dir, "/var/lib/efka/docker/"}
|
{root_dir, "${EFKA_DOCKER_ROOT_DIR}"}
|
||||||
]},
|
]},
|
||||||
|
|
||||||
%% 系统日志配置,使用 OTP logger
|
%% 系统日志配置,使用 OTP logger
|
||||||
@ -3,7 +3,7 @@
|
|||||||
-setcookie efka_cookie
|
-setcookie efka_cookie
|
||||||
-kernel start_group false
|
-kernel start_group false
|
||||||
|
|
||||||
-mnesia dir '"/var/lib/efka/mnesia"'
|
-mnesia dir '"${EFKA_MNESIA_DIR}"'
|
||||||
-mnesia dump_log_write_threshold 5000
|
-mnesia dump_log_write_threshold 5000
|
||||||
-mnesia dc_dump_limit 40
|
-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,
|
[efka,
|
||||||
sasl]},
|
sasl]},
|
||||||
|
|
||||||
{mode, dev},
|
{mode, prod},
|
||||||
|
|
||||||
%% automatically picked up if the files
|
{sys_config_src, "./config/sys.config.src"},
|
||||||
%% exist but can be set manually, which
|
{vm_args_src, "./config/vm.args.src"}
|
||||||
%% 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"}
|
|
||||||
]}.
|
]}.
|
||||||
|
|
||||||
{profiles, [{prod, [{relx,
|
{profiles, [{prod, [{relx,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user