s2smanager: Log the hostname and address when s2s connection fails instantly
[prosody.git] / prosody.cfg.lua.dist
index 182f88893233acd01e45b1fe10dcc6dfce88fd06..8e12f92221c5614c0f020f0b3dca2efc8faae304 100644 (file)
@@ -38,7 +38,6 @@ Host "*"
        modules_enabled = {\r
                        -- Generally required\r
                                "roster"; -- Allow users to have a roster. Recommended ;)\r
-                               "presence"; -- See and broadcast status changes to/from contacts\r
                                "saslauth"; -- Authentication for clients and servers. Recommended if you want to log in.\r
                                "tls"; -- Add support for secure TLS on c2s/s2s connections\r
                                "dialback"; -- s2s dialback support\r
@@ -54,15 +53,19 @@ Host "*"
                                "uptime"; -- Report how long server has been running\r
                                "time"; -- Let others know the time here on this server\r
                                "ping"; -- Replies to XMPP pings with pongs\r
+                               "register"; -- Allow users to register on this server using a client and change passwords\r
 \r
                        -- Other specific functionality\r
-                               --"register"; -- Allow users to register on this server using a client\r
                                --"posix"; -- POSIX functionality, sends server to background, enables syslog, etc.\r
                                --"console"; -- telnet to port 5582 (needs console_enabled = true)\r
                                --"bosh"; -- Enable BOSH clients, aka "Jabber over HTTP"\r
                                --"httpserver"; -- Serve static files from a directory over HTTP\r
                          };\r
        \r
+       -- Disable account creation by default, for security\r
+       -- For more information see http://prosody.im/doc/creating_accounts\r
+       allow_registration = false;\r
+       \r
        -- These are the SSL/TLS-related settings. If you don't want\r
        -- to use SSL/TLS, you may comment or remove this\r
        ssl = { \r