changeset 229:9278544faffb

correction to code block.
author maranda@lightwitch.org
date Sat, 05 Nov 2011 19:18:41 +0000
parents 818b1135d3e3
children a00ce355e07b
files mod_register_json.wiki
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mod_register_json.wiki	Sat Nov 05 19:13:00 2011 +0000
+++ b/mod_register_json.wiki	Sat Nov 05 19:18:41 2011 +0000
@@ -30,13 +30,13 @@
 Hint: pairing with mod_register_url is helpful, to allow server registrations only via your webform.
 
 Optional configuration directives:
-{{{
+<code language="lua">
 reg_servlet_realm = "Your Realm Name of choice" -- Modifies the name of the authentication realm.
-reg_servlet_ports = { *configuration directives in bosh ports format* } -- Allows to configure custom ports see: http://prosody.im/doc/setting_up_bosh
+reg_servlet_ports = { { port = 8080, path = "your_register_path" } } -- Allows to configure custom ports see: http://prosody.im/doc/setting_up_bosh
 reg_servlet_ttime = seconds -- Specifies the time (in seconds) between each request coming from the same remote address.
 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.
 reg_servlet_wl = { "1.2.3.4", "4.3.2.1" } -- The ip addresses in this list will be ignored by the throttling.
-}}}
+</code>
 
 Notes on ports:
 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.