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 insignificant, so
22 -- be placed anywhere that you deem fitting.
24 -- Tip: You can check that the syntax of this file is correct when you have finished
25 -- by running: luac -p prosody.cfg.lua
26 -- If there are any errors, it will let you know what and where they are, otherwise it
29 -- The only thing left to do is rename this file to remove the .dist ending, and fill in the
30 -- blanks. Good luck, and happy Jabbering!
32 -- Server-wide settings go in this section
35 -- This is a (by default, empty) list of accounts that are admins
36 -- for the server. Note that you must create the accounts separately
37 -- (see http://prosody.im/doc/creating_accounts for info)
38 -- Example: admins = { "user1@example.com", "user2@example.net" }
41 -- This is the list of modules Prosody will load on startup.
42 -- It looks for mod_modulename.lua in the plugins folder, so make sure that exists too.
45 "roster"; -- Allow users to have a roster. Recommended ;)
46 "saslauth"; -- Authentication for clients and servers. Recommended if you want to log in.
47 "tls"; -- Add support for secure TLS on c2s/s2s connections
48 "dialback"; -- s2s dialback support
49 "disco"; -- Service discovery
51 -- Not essential, but recommended
52 "private"; -- Private XML storage (for room bookmarks, etc.)
53 "vcard"; -- Allow users to set vCards
56 "legacyauth"; -- Legacy authentication. Only used by some old clients and bots.
57 "version"; -- Replies to server version requests
58 "uptime"; -- Report how long server has been running
59 "time"; -- Let others know the time here on this server
60 "ping"; -- Replies to XMPP pings with pongs
61 "pep"; -- Enables users to publish their mood, activity, playing music and more
62 "register"; -- Allow users to register on this server using a client and change passwords
64 -- Other specific functionality
65 --"posix"; -- POSIX functionality, sends server to background, enables syslog, etc.
66 --"console"; -- telnet to port 5582 (needs console_enabled = true)
67 --"bosh"; -- Enable BOSH clients, aka "Jabber over HTTP"
68 --"httpserver"; -- Serve static files from a directory over HTTP
71 -- These modules are auto-loaded, should you
72 -- for (for some mad reason) want to disable
73 -- them then uncomment them below
80 -- Disable account creation by default, for security
81 -- For more information see http://prosody.im/doc/creating_accounts
82 allow_registration = false;
84 -- These are the SSL/TLS-related settings. If you don't want
85 -- to use SSL/TLS, you may comment or remove this
87 key = "certs/localhost.key";
88 certificate = "certs/localhost.cert";
91 -- This allows clients to connect to localhost. No harm in it.
94 -- Section for example.com
95 -- (replace example.com with your domain name)
98 enabled = false -- This will disable the host, preserving the config, but denying connections
100 -- Assign this host a certificate for TLS, otherwise it would use the one
101 -- set in the global section (if any).
102 -- Note that old-style SSL on port 5223 only supports one certificate, and will always
103 -- use the global one.
105 key = "certs/example.com.key";
106 certificate = "certs/example.com.crt";
109 -- Set up a MUC (multi-user chat) room server on conference.example.com:
110 Component "conference.example.com" "muc"