You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/mod_invites.erl
+10-6Lines changed: 10 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -94,8 +94,8 @@ mod_doc() ->
94
94
?T("Same as top-level _`default_db`_ option, but applied to this "
95
95
"module only.")}},
96
96
{landing_page,
97
-
#{value=>"none | binary()",
98
-
desc=>?T("Web address of service handling invite links. This is either a local address handled by `mod_invites` configured as a handler at `ejabberd_http` or an external service like 'easy-xmpp-invitation'. The address must be given as a template pattern with fields from the `invite` that will then get replaced accordingly. Eg.: 'https://{{ host }}:5281/invites/{{ invite.token }}' or as an external service like 'http://{{ host }}:8080/easy-xmpp-invites/#{{ invite.uri|strip_protocol }}'. This is the landing page that is being communicated when creating an invite using one of the ad-hoc commands.")}
97
+
#{value=>"none | auto | LandingPageURLTemplate",
98
+
desc=>?T("This is the landing page that is being communicated when creating an invite using one of the ad-hoc commands, the web address of service handling invite links. This is either a local address handled by `mod_invites` configured as a handler at `ejabberd_http` or an external service like 'easy-xmpp-invitation'. The address must be given as a template pattern with fields from the `invite` that will then get replaced accordingly. Eg.: 'https://{{ host }}:5281/invites/{{ invite.token }}' or as an external service like 'http://{{ host }}:8080/easy-xmpp-invites/#{{ invite.uri|strip_protocol }}'. For convenience you can choose 'auto' here and the ejabberd_http handler will be used.")}
99
99
},
100
100
{max_invites,
101
101
#{value=>"pos_integer() | infinity",
@@ -126,9 +126,12 @@ mod_doc() ->
126
126
"",
127
127
"modules:",
128
128
" mod_invites:",
129
-
" access_create_account: register"]},
129
+
" access_create_account: register"
130
+
" landing_page: auto"
131
+
]},
130
132
{?T("If you want all your users to be able to send 'create account' "
131
-
"invites, you would configure your server like this instead:"),
133
+
"invites and have a proxy in front of `ejabberd_http` to not expose its port "
134
+
"directly, you would configure your server like this instead:"),
0 commit comments