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

Define the types of options that opt_type.sh cannot derive automatically

This commit is contained in:
Badlop 2024-09-11 17:03:50 +02:00
parent 3d9a5a1635
commit ce5a8acaf7
2 changed files with 4 additions and 0 deletions

View File

@ -491,6 +491,7 @@ opt_type(jwt_auth_only_rule) ->
{c2s_protocol_options, undefined | binary()} | {c2s_protocol_options, undefined | binary()} |
{s2s_ciphers, undefined | binary()} | {s2s_ciphers, undefined | binary()} |
{c2s_ciphers, undefined | binary()} | {c2s_ciphers, undefined | binary()} |
{captcha_cmd, undefined | binary()} |
{websocket_origin, [binary()]} | {websocket_origin, [binary()]} |
{disable_sasl_mechanisms, [binary()]} | {disable_sasl_mechanisms, [binary()]} |
{s2s_zlib, boolean()} | {s2s_zlib, boolean()} |

View File

@ -873,6 +873,9 @@ mod_opt_type(matrix_id_as_jid) ->
mod_opt_type(persist) -> mod_opt_type(persist) ->
econf:bool(). econf:bool().
-spec mod_options(binary()) -> [{key, {binary(), binary()}} |
{atom(), any()}].
mod_options(Host) -> mod_options(Host) ->
[{matrix_domain, Host}, [{matrix_domain, Host},
{host, <<"matrix.", Host/binary>>}, {host, <<"matrix.", Host/binary>>},