|
@@ -93,7 +93,8 @@ roots() ->
|
|
|
"plugins",
|
|
"plugins",
|
|
|
"stats",
|
|
"stats",
|
|
|
"sysmon",
|
|
"sysmon",
|
|
|
- "alarm"
|
|
|
|
|
|
|
+ "alarm",
|
|
|
|
|
+ "authorization"
|
|
|
].
|
|
].
|
|
|
|
|
|
|
|
fields("stats") ->
|
|
fields("stats") ->
|
|
@@ -113,13 +114,13 @@ fields("authorization") ->
|
|
|
#{ default => ignore
|
|
#{ default => ignore
|
|
|
})}
|
|
})}
|
|
|
, {"cache",
|
|
, {"cache",
|
|
|
- sc(ref("authorization_cache"),
|
|
|
|
|
|
|
+ sc(ref(?MODULE, "cache"),
|
|
|
#{
|
|
#{
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
];
|
|
];
|
|
|
|
|
|
|
|
-fields("authorization_cache") ->
|
|
|
|
|
|
|
+fields("cache") ->
|
|
|
[ {"enable",
|
|
[ {"enable",
|
|
|
sc(boolean(),
|
|
sc(boolean(),
|
|
|
#{ default => true
|
|
#{ default => true
|
|
@@ -276,7 +277,7 @@ fields("zones") ->
|
|
|
)}];
|
|
)}];
|
|
|
|
|
|
|
|
fields("zone_settings") ->
|
|
fields("zone_settings") ->
|
|
|
- Fields = ["mqtt", "stats", "authorization", "flapping_detect", "force_shutdown",
|
|
|
|
|
|
|
+ Fields = ["mqtt", "stats", "flapping_detect", "force_shutdown",
|
|
|
"conn_congestion", "rate_limit", "quota", "force_gc"],
|
|
"conn_congestion", "rate_limit", "quota", "force_gc"],
|
|
|
[{F, ref(emqx_zone_schema, F)} || F <- Fields];
|
|
[{F, ref(emqx_zone_schema, F)} || F <- Fields];
|
|
|
|
|
|