chore(authz): add default config
Signed-off-by: zhanghongtong <rory-z@outlook.com>
This commit is contained in:
parent
4594d2d42b
commit
6f8c87001f
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ fields("authorization") ->
|
|||
[ {rules, rules()}
|
||||
];
|
||||
fields(file) ->
|
||||
[ {type, #{type => http}}
|
||||
[ {type, #{type => file}}
|
||||
, {enable, #{type => boolean(),
|
||||
default => true}}
|
||||
, {path, #{type => string(),
|
||||
|
|
|
@ -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"}}}
|
||||
]}.
|
||||
|
|
Loading…
Reference in New Issue