26
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-28 17:38:54 +01:00

Fix jwt_key option processing

This commit is contained in:
Evgeny Khramtsov 2019-07-03 19:16:54 +03:00
parent 0d0ad9d1d9
commit b7f6620166

View File

@ -415,7 +415,7 @@ opt_type(jwt_key) ->
case file:read_file(Path) of case file:read_file(Path) of
{ok, Binary} -> Binary; {ok, Binary} -> Binary;
{error, Reason} -> {error, Reason} ->
econf:fail({jtw_key_error, Reason}) econf:fail({read_file, Reason, Path})
end end
end). end).
@ -436,6 +436,7 @@ opt_type(jwt_key) ->
{shaper, #{atom() => ejabberd_shaper:shaper_rate()}} | {shaper, #{atom() => ejabberd_shaper:shaper_rate()}} |
{shaper_rules, [{atom(), [ejabberd_shaper:shaper_rule()]}]} | {shaper_rules, [{atom(), [ejabberd_shaper:shaper_rule()]}]} |
{api_permissions, [ejabberd_access_permissions:permission()]} | {api_permissions, [ejabberd_access_permissions:permission()]} |
{jwt_key, binary()} |
{append_host_config, [{binary(), any()}]} | {append_host_config, [{binary(), any()}]} |
{host_config, [{binary(), any()}]} | {host_config, [{binary(), any()}]} |
{define_macro, any()} | {define_macro, any()} |