comparison mod_register_json.wiki @ 276:08744edfffba

updated wiki.
author Marco Cirillo <maranda@lightwitch.org>
date Sat, 26 May 2012 02:43:58 +0000
parents 9278544faffb
children 41d03be9ac76
comparison
equal deleted inserted replaced
275:b5563fb582aa 276:08744edfffba
1 #summary mini JSON registration servlet. 1 #summary mini JSON registration servlet.
2 #labels Stage-Alpha 2 #labels Stage-Beta
3 3
4 = Introduction = 4 = Introduction =
5 5
6 This module let's you activate a httpserver interface to handle data from webforms with POST and JSON. 6 This module let's you activate a httpserver interface to handle data from webforms with POST and JSON.
7 7
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 <code language="lua"> 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 = { { 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. 35 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. 36 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. 37 reg_servlet_wl = { "1.2.3.4", "4.3.2.1" } -- The ip addresses in this list will be ignored by the throttling.
39 </code> 38 </code>
40 39
41 Notes on ports: 40 = Info =
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 41
44 = Compatibility = 42 * This is only compatible with 0.9, please look at the 0.8-diverge branch for older versions
45
46 Trunk - Works.
47
48 0.8 - Should work.
49
50 0.7 - Untested.