comparison mod_register_json.wiki @ 185:9aab3736b3ca

Added hint.
author maranda3985@gmail.com
date Tue, 12 Apr 2011 23:51:32 +0000
parents ad1b7e71c32e
children 673fa35f880f
comparison
equal deleted inserted replaced
184:ad1b7e71c32e 185:9aab3736b3ca
25 = Usage = 25 = Usage =
26 26
27 Copy the module file into your prosody modules directory. 27 Copy the module file into your prosody modules directory.
28 Load the module in your configuration file's global section (Host "*"), that would suffice to run it. 28 Load the module in your configuration file's global section (Host "*"), that would suffice to run it.
29 29
30 Hint: pairing with mod_register_url is helpful, to allow server registrations only via your webform.
31
30 Optional configuration directives: 32 Optional configuration directives:
31 {{{ 33 {{{
32 reg_servlet_realm = "Your Realm Name of choice" -- Modifies the name of the authentication realm. 34 reg_servlet_realm = "Your Realm Name of choice" -- Modifies the name of the authentication realm.
33 reg_servlet_ttime = minutes -- Specifies the time (in minutes) between each request coming from the same remote address. 35 reg_servlet_ttime = minutes -- Specifies the time (in minutes) between each request coming from the same remote address.
34 reg_servlet_bl = { "1.2.3.4", "4.3.2.1" } -- The ip addresses in this list will be blacklisted and won't be able to register. 36 reg_servlet_bl = { "1.2.3.4", "4.3.2.1" } -- The ip addresses in this list will be blacklisted and won't be able to register.