prosody.cfg.lua.dist: Enable mod_register by default, but with registration disabled, and add a comment about it

Tue, 02 Jun 2009 19:56:12 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Tue, 02 Jun 2009 19:56:12 +0100
changeset 1291
22dcd5f06bc4
parent 1290
c253905a8a55
child 1295
ead6d78d2217

prosody.cfg.lua.dist: Enable mod_register by default, but with registration disabled, and add a comment about it

prosody.cfg.lua.dist file | annotate | diff | comparison | revisions
--- a/prosody.cfg.lua.dist	Tue Jun 02 19:08:36 2009 +0100
+++ b/prosody.cfg.lua.dist	Tue Jun 02 19:56:12 2009 +0100
@@ -54,15 +54,19 @@
 			  	"uptime"; -- Report how long server has been running
 			  	"time"; -- Let others know the time here on this server
 			  	"ping"; -- Replies to XMPP pings with pongs
+				"register"; -- Allow users to register on this server using a client and change passwords
 
 			-- Other specific functionality
-				--"register"; -- Allow users to register on this server using a client
 				--"posix"; -- POSIX functionality, sends server to background, enables syslog, etc.
 			  	--"console"; -- telnet to port 5582 (needs console_enabled = true)
 				--"bosh"; -- Enable BOSH clients, aka "Jabber over HTTP"
 				--"httpserver"; -- Serve static files from a directory over HTTP
 			  };
 	
+	-- Disable account creation by default, for security
+	-- For more information see http://prosody.im/doc/creating_accounts
+	allow_registration = false;
+	
 	-- These are the SSL/TLS-related settings. If you don't want
 	-- to use SSL/TLS, you may comment or remove this
 	ssl = { 

mercurial