prosody.cfg.lua.dist

changeset 2931
de4daf300f19
parent 2930
832ab8cf7c57
child 2984
3094166cfdd5
equal deleted inserted replaced
2930:832ab8cf7c57 2931:de4daf300f19
32 -- blanks. Good luck, and happy Jabbering! 32 -- blanks. Good luck, and happy Jabbering!
33 33
34 -- Server-wide settings go in this section 34 -- Server-wide settings go in this section
35 Host "*" 35 Host "*"
36 36
37 -- This is a (by default, empty) list of accounts that are admins for the 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 38 -- server. Note that you must create the accounts separately (see
39 -- http://prosody.im/doc/creating_accounts) 39 -- http://prosody.im/doc/creating_accounts)
40 -- Example: admins = { "user1@example.com", "user2@example.net" } 40 -- Example: admins = { "user1@example.com", "user2@example.net" }
41 admins = { } 41 admins = { }
42 42
43 -- Enable use of libevent for better performance under high load 43 -- Enable use of libevent for better performance under high load
44 -- For more information see: http://prosody.im/doc/libevent 44 -- For more information see: http://prosody.im/doc/libevent
45 --use_libevent = true; 45 --use_libevent = true;
46
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
50 modules_enabled = {
51 -- Generally required
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.
58 46
59 -- Not essential, but recommended 47 -- This is the list of modules Prosody will load on startup. It looks for
60 "private"; -- Private XML storage (for room bookmarks, etc.) 48 -- mod_modulename.lua in the plugins folder, so make sure that exists too.
61 "vcard"; -- Allow users to set vCards 49 -- Documentation on modules can be found at: http://prosody.im/doc/modules
62 "tls"; -- Support for secure TLS on c2s/s2s connections 50 modules_enabled = {
63 --"privacy"; -- Support privacy lists 51 -- Generally required
64 --"compression"; -- Stream compression for client-to-server streams 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.
65 58
66 -- Nice to have 59 -- Not essential, but recommended
67 "legacyauth"; -- Legacy authentication. Only used by some old 60 "private"; -- Private XML storage (for room bookmarks, etc.)
68 -- clients and bots. 61 "vcard"; -- Allow users to set vCards
69 "version"; -- Replies to server version requests 62 "tls"; -- Support for secure TLS on c2s/s2s connections
70 "uptime"; -- Report how long server has been running 63 --"privacy"; -- Support privacy lists
71 "time"; -- Let others know the time here on this server 64 --"compression"; -- Stream compression for client-to-server streams
72 "ping"; -- Replies to XMPP pings with pongs
73 "pep"; -- Enables users to publish their mood, activity, playing
74 -- music and more
75 "register"; -- Allow users to register on this server using a client
76 -- and change passwords
77 65
78 -- Other specific functionality 66 -- Nice to have
79 --"console"; -- telnet to port 5582 67 "legacyauth"; -- Legacy authentication. Only used by some old
80 -- (needs console_enabled = true) 68 -- clients and bots.
81 --"bosh"; -- Enable BOSH clients, aka "Jabber over HTTP" 69 "version"; -- Replies to server version requests
82 --"httpserver"; -- Serve static files from a directory over 70 "uptime"; -- Report how long server has been running
83 -- HTTP 71 "time"; -- Let others know the time here on this server
84 --"groups"; -- Shared roster support 72 "ping"; -- Replies to XMPP pings with pongs
85 --"announce"; -- Send announcement to all online users 73 "pep"; -- Enables users to publish their mood, activity, playing
86 --"welcome"; -- Welcome users who register accounts 74 -- music and more
87 --"watchregistrations"; -- Alert admins of registrations 75 "register"; -- Allow users to register on this server using a client
88 } 76 -- and change passwords
89 77
90 -- These modules are auto-loaded, should you for (for some mad 78 -- Other specific functionality
91 -- reason) want to disable them then uncomment them below. 79 --"console"; -- telnet to port 5582
92 modules_disabled = { 80 -- (needs console_enabled = true)
93 --"presence"; 81 --"bosh"; -- Enable BOSH clients, aka "Jabber over HTTP"
94 --"message"; 82 --"httpserver"; -- Serve static files from a directory over
95 --"iq"; 83 -- HTTP
96 } 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
88 }
97 89
98 -- Disable account creation by default, for security 90 -- These modules are auto-loaded, should you for (for some mad
99 -- For more information see http://prosody.im/doc/creating_accounts 91 -- reason) want to disable them then uncomment them below.
100 allow_registration = false; 92 modules_disabled = {
93 --"presence";
94 --"message";
95 --"iq";
96 }
101 97
102 --These are the SSL/TLS-related settings. 98 -- Disable account creation by default, for security
103 --ssl = { 99 -- For more information see http://prosody.im/doc/creating_accounts
104 -- key = "certs/localhost.key"; 100 allow_registration = false;
105 -- certificate = "certs/localhost.cert";
106 --}
107 101
108 -- Require encryption on client/server connections? 102 --These are the SSL/TLS-related settings.
109 --c2s_require_encryption = false 103 --ssl = {
110 --s2s_require_encryption = false 104 -- key = "certs/localhost.key";
105 -- certificate = "certs/localhost.cert";
106 --}
111 107
112 -- Logging configuration 108 -- Require encryption on client/server connections?
113 -- For advanced logging see http://prosody.im/doc/logging 109 --c2s_require_encryption = false
114 log = "prosody.log"; 110 --s2s_require_encryption = false
115 debug = false; -- Log debug messages? 111
112 -- Logging configuration
113 -- For advanced logging see http://prosody.im/doc/logging
114 log = "prosody.log";
115 debug = false; -- Log debug messages?
116 116
117 -- This allows clients to connect to localhost. No harm in it. 117 -- This allows clients to connect to localhost. No harm in it.
118 Host "localhost" 118 Host "localhost"
119 119
120 -- Section for example.com 120 -- Section for example.com
121 -- (replace example.com with your domain name) 121 -- (replace example.com with your domain name)
122 Host "example.com" 122 Host "example.com"
123 enabled = false -- This will disable the host, preserving the config, but 123 enabled = false -- This will disable the host, preserving the config, but
124 -- denying connections (remove to enable!) 124 -- denying connections (remove to enable!)
125 125
126 -- Assign this host a certificate for TLS, otherwise it would use the one 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 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. 128 -- only supports one certificate, and will always use the global one.
129 --ssl = { 129 --ssl = {
130 -- key = "certs/example.com.key"; 130 -- key = "certs/example.com.key";
131 -- certificate = "certs/example.com.crt"; 131 -- certificate = "certs/example.com.crt";
132 --} 132 --}
133 133
134 -- Set up a MUC (multi-user chat) room server on conference.example.com: 134 -- Set up a MUC (multi-user chat) room server on conference.example.com:
135 --Component "conference.example.com" "muc" 135 --Component "conference.example.com" "muc"
136 136
137 -- Set up a SOCKS5 bytestream proxy for server-proxied file transfers: 137 -- Set up a SOCKS5 bytestream proxy for server-proxied file transfers:

mercurial