comparison mod_register_json.wiki @ 229:9278544faffb

correction to code block.
author maranda@lightwitch.org
date Sat, 05 Nov 2011 19:18:41 +0000
parents 818b1135d3e3
children 08744edfffba
comparison
equal deleted inserted replaced
228:818b1135d3e3 229:9278544faffb
28 Load the module in your configuration file's global section, that would suffice to run it. 28 Load the module in your configuration file's global section, 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. 30 Hint: pairing with mod_register_url is helpful, to allow server registrations only via your webform.
31 31
32 Optional configuration directives: 32 Optional configuration directives:
33 {{{ 33 <code language="lua">
34 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.
35 reg_servlet_ports = { *configuration directives in bosh ports format* } -- Allows to configure custom ports see: http://prosody.im/doc/setting_up_bosh 35 reg_servlet_ports = { { port = 8080, path = "your_register_path" } } -- Allows to configure custom ports see: http://prosody.im/doc/setting_up_bosh
36 reg_servlet_ttime = seconds -- Specifies the time (in seconds) between each request coming from the same remote address. 36 reg_servlet_ttime = seconds -- Specifies the time (in seconds) between each request coming from the same remote address.
37 reg_servlet_bl = { "1.2.3.4", "4.3.2.1" } -- The ip addresses in this list will be blacklisted and will not be able to submit registrations. 37 reg_servlet_bl = { "1.2.3.4", "4.3.2.1" } -- The ip addresses in this list will be blacklisted and will not be able to submit registrations.
38 reg_servlet_wl = { "1.2.3.4", "4.3.2.1" } -- The ip addresses in this list will be ignored by the throttling. 38 reg_servlet_wl = { "1.2.3.4", "4.3.2.1" } -- The ip addresses in this list will be ignored by the throttling.
39 }}} 39 </code>
40 40
41 Notes on ports: 41 Notes on ports:
42 Modified to use, prosody's standard ports configuration format, if you don't specify any port via *port =* param, 9280 (non ssl) and 9443 (ssl) will be used. 42 Modified to use, prosody's standard ports configuration format, if you don't specify any port via *port =* param, 9280 (non ssl) and 9443 (ssl) will be used.
43 43
44 = Compatibility = 44 = Compatibility =