diff options
Diffstat (limited to 'src/plugins/lua/external_relay.lua')
-rw-r--r-- | src/plugins/lua/external_relay.lua | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/src/plugins/lua/external_relay.lua b/src/plugins/lua/external_relay.lua index 9c0f06ff8..3660f921e 100644 --- a/src/plugins/lua/external_relay.lua +++ b/src/plugins/lua/external_relay.lua @@ -34,40 +34,40 @@ local settings = { rules = {}, } -local config_schema = ts.shape{ +local config_schema = ts.shape { enabled = ts.boolean:is_optional(), rules = ts.map_of( - ts.string, ts.one_of{ - ts.shape{ - priority = ts.number:is_optional(), - strategy = 'authenticated', - symbol = ts.string:is_optional(), - user_map = lua_maps.map_schema:is_optional(), - }, - ts.shape{ - count = ts.number, - priority = ts.number:is_optional(), - strategy = 'count', - symbol = ts.string:is_optional(), - }, - ts.shape{ - priority = ts.number:is_optional(), - strategy = 'local', - symbol = ts.string:is_optional(), - }, - ts.shape{ - hostname_map = lua_maps.map_schema, - priority = ts.number:is_optional(), - strategy = 'hostname_map', - symbol = ts.string:is_optional(), - }, - ts.shape{ - ip_map = lua_maps.map_schema, - priority = ts.number:is_optional(), - strategy = 'ip_map', - symbol = ts.string:is_optional(), - }, - } + ts.string, ts.one_of { + ts.shape { + priority = ts.number:is_optional(), + strategy = 'authenticated', + symbol = ts.string:is_optional(), + user_map = lua_maps.map_schema:is_optional(), + }, + ts.shape { + count = ts.number, + priority = ts.number:is_optional(), + strategy = 'count', + symbol = ts.string:is_optional(), + }, + ts.shape { + priority = ts.number:is_optional(), + strategy = 'local', + symbol = ts.string:is_optional(), + }, + ts.shape { + hostname_map = lua_maps.map_schema, + priority = ts.number:is_optional(), + strategy = 'hostname_map', + symbol = ts.string:is_optional(), + }, + ts.shape { + ip_map = lua_maps.map_schema, + priority = ts.number:is_optional(), + strategy = 'ip_map', + symbol = ts.string:is_optional(), + }, + } ), } |