1 -- Prosody Example Configuration File
3 -- If it wasn't already obvious, -- starts a comment, and all
4 -- text after it on a line is ignored by Prosody.
6 -- The config is split into sections, a global section, and one
7 -- for each defined host that we serve. You can add as many host
8 -- sections as you like.
10 -- Lists are written { "like", "this", "one" }
11 -- Lists can also be of { 1, 2, 3 } numbers, and other things.
12 -- Either commas, or semi-colons; may be used
15 -- A table is a list of values, except each value has a name. An
16 -- example table would be:
18 -- ssl = { key = "keyfile.key", certificate = "certificate.cert" }
20 -- Whitespace (that is tabs, spaces, line breaks) is mostly
23 -- be placed anywhere that you deem fitting.
25 -- Tip: You can check that the syntax of this file is correct when you
26 -- have finished by running: luac -p prosody.cfg.lua
27 -- If there are any errors, it will let you know what and where they
28 -- are, otherwise it will keep quiet.
30 -- The only thing left to do is rename this file to remove the .dist
31 -- ending, and fill in the
32 -- blanks. Good luck, and happy Jabbering!
34 -- Server-wide settings go in this section
37 -- This is a (by default, empty) list of accounts that are admins for the
38 -- server. Note that you must create the accounts separately (see
39 -- http://prosody.im/doc/creating_accounts)
40 -- Example: admins = { "user1@example.com", "user2@example.net" }
43 -- Enable use of libevent for better performance under high load
44 -- For more information see: http://prosody.im/doc/libevent
45 --use_libevent = true;
47 -- This is the list of modules Prosody will load on startup. It looks for
48 -- mod_modulename.lua in the plugins folder, so make sure that exists too.
49 -- Documentation on modules can be found at: http://prosody.im/doc/modules
52 "roster"; -- Allow users to have a roster. Recommended ;)
53 "saslauth"; -- Authentication for clients and servers. Recommended if
54 -- you want to log in.
55 "dialback"; -- s2s dialback support
56 "disco"; -- Service discovery
57 "posix"; -- POSIX functionality, daemonizes, enables syslog, etc.
59 -- Not essential, but recommended
60 "private"; -- Private XML storage (for room bookmarks, etc.)
61 "vcard"; -- Allow users to set vCards
62 "privacy"; -- Support privacy lists
63 "tls"; -- Support for secure TLS on c2s/s2s connections
64 --"compression"; -- Stream compression for client-to-server streams
67 "legacyauth"; -- Legacy authentication. Only used by some old
69 "version"; -- Replies to server version requests
70 "uptime"; -- Report how long server has been running
71 "time"; -- Let others know the time here on this server
72 "ping"; -- Replies to XMPP pings with pongs
73 "pep"; -- Enables users to publish their mood, activity, playing
75 "register"; -- Allow users to register on this server using a client
76 -- and change passwords
78 -- Other specific functionality
79 --"console"; -- telnet to port 5582
80 -- (needs console_enabled = true)
81 --"bosh"; -- Enable BOSH clients, aka "Jabber over HTTP"
82 --"httpserver"; -- Serve static files from a directory over
84 --"groups"; -- Shared roster support
85 --"announce"; -- Send announcement to all online users
86 --"welcome"; -- Welcome users who register accounts
87 --"watchregistrations"; -- Alert admins of registrations
90 -- These modules are auto-loaded, should you for (for some mad
91 -- reason) want to disable them then uncomment them below.
98 -- Disable account creation by default, for security
99 -- For more information see http://prosody.im/doc/creating_accounts
100 allow_registration = false;
102 --These are the SSL/TLS-related settings.
104 -- key = "certs/localhost.key";
105 -- certificate = "certs/localhost.cert";
108 -- Require encryption on client/server connections?
109 --c2s_require_encryption = false
110 --s2s_require_encryption = false
112 -- Logging configuration
113 -- For advanced logging see http://prosody.im/doc/logging
115 debug = false; -- Log debug messages?
117 -- This allows clients to connect to localhost. No harm in it.
120 -- Section for example.com
121 -- (replace example.com with your domain name)
123 enabled = false -- This will disable the host, preserving the config, but
124 -- denying connections (remove to enable!)
126 -- Assign this host a certificate for TLS, otherwise it would use the one
127 -- set in the global section (if any). Note that old-style SSL on port 5223
128 -- only supports one certificate, and will always use the global one.
130 -- key = "certs/example.com.key";
131 -- certificate = "certs/example.com.crt";
134 -- Set up a MUC (multi-user chat) room server on conference.example.com:
135 --Component "conference.example.com" "muc"
137 -- Set up a SOCKS5 bytestream proxy for server-proxied file transfers:
138 --Component "proxy.example.com" "proxy65"