chore(authz): add default config

Signed-off-by: zhanghongtong <rory-z@outlook.com>
This commit is contained in:
zhanghongtong 2021-08-25 17:21:04 +08:00 committed by Rory Z
parent 4594d2d42b
commit 6f8c87001f
3 changed files with 6 additions and 6 deletions

View File

@ -65,9 +65,9 @@ authorization {
# collection: mqtt_authz
# find: { "$or": [ { "username": "%u" }, { "clientid": "%c" } ] }
# },
# {
# type: file
# path: {{ platform_etc_dir }}/authorization_rules.conf
# }
{
type: file
path: "{{ platform_etc_dir }}/authorization_rules.conf"
}
]
}

View File

@ -23,7 +23,7 @@ fields("authorization") ->
[ {rules, rules()}
];
fields(file) ->
[ {type, #{type => http}}
[ {type, #{type => file}}
, {enable, #{type => boolean(),
default => true}}
, {path, #{type => string(),

View File

@ -60,7 +60,7 @@
, {observer_cli, "1.7.1"} % NOTE: depends on recon 2.5.x
, {getopt, "1.0.2"}
, {snabbkaffe, {git, "https://github.com/kafka4beam/snabbkaffe.git", {tag, "0.14.1"}}}
, {hocon, {git, "https://github.com/emqx/hocon.git", {tag, "0.12.1"}}}
, {hocon, {git, "https://github.com/emqx/hocon.git", {tag, "0.13.0"}}}
, {emqx_http_lib, {git, "https://github.com/emqx/emqx_http_lib.git", {tag, "0.4.0"}}}
, {esasl, {git, "https://github.com/emqx/esasl", {tag, "0.2.0"}}}
]}.