diff options
Diffstat (limited to 'src/ejabberd_options.erl')
-rw-r--r-- | src/ejabberd_options.erl | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ejabberd_options.erl b/src/ejabberd_options.erl index a83f0add7..7764f451b 100644 --- a/src/ejabberd_options.erl +++ b/src/ejabberd_options.erl @@ -409,7 +409,9 @@ opt_type(jwt_key) -> {error, Reason} -> econf:fail({read_file, Reason, Path}) end - end). + end); +opt_type(jwt_auth_only_rule) -> + econf:atom(). %% We only define the types of options that cannot be derived %% automatically by tools/opt_type.sh script @@ -635,7 +637,8 @@ options() -> {websocket_origin, []}, {websocket_ping_interval, timer:seconds(60)}, {websocket_timeout, timer:minutes(5)}, - {jwt_key, undefined}]. + {jwt_key, undefined}, + {jwt_auth_only_rule, none}]. -spec globals() -> [atom()]. globals() -> |