· 9 years ago · Oct 27, 2016, 03:52 PM
1admins = { "admin@test.com", "admin@localhost", "user@localhost", "jjsebasv@protos-tpe" }
2-- Example: admins = { "user1@example.com", "user2@example.net" }
3
4-- Enable use of libevent for better performance under high load
5-- For more information see: http://prosody.im/doc/libevent
6--use_libevent = true;
7
8-- This is the list of modules Prosody will load on startup.
9-- It looks for mod_modulename.lua in the plugins folder, so make sure that exists too.
10-- Documentation on modules can be found at: http://prosody.im/doc/modules
11modules_enabled = {
12
13 -- Generally required
14 "roster"; -- Allow users to have a roster. Recommended ;)
15 "saslauth"; -- Authentication for clients and servers. Recommended if you want to log in.
16 "tls"; -- Add support for secure TLS on c2s/s2s connections
17 "dialback"; -- s2s dialback support
18 "disco"; -- Service discovery
19 "posix";
20
21 -- Not essential, but recommended
22 "private"; -- Private XML storage (for room bookmarks, etc.)
23 "vcard"; -- Allow users to set vCards
24
25 -- These are commented by default as they have a performance impact
26 --"privacy"; -- Support privacy lists
27 --"compression"; -- Stream compression
28
29 -- Nice to have
30 "version"; -- Replies to server version requests
31 "uptime"; -- Report how long server has been running
32 "time"; -- Let others know the time here on this server
33 "ping"; -- Replies to XMPP pings with pongs
34 "pep"; -- Enables users to publish their mood, activity, playing music and more
35 "register"; -- Allow users to register on this server using a client and change passwords
36
37 -- Admin interfaces
38 "admin_adhoc"; -- Allows administration via an XMPP client that supports ad-hoc commands
39 --"admin_telnet"; -- Opens telnet console interface on localhost port 5582
40
41 -- HTTP modules
42 --"bosh"; -- Enable BOSH clients, aka "Jabber over HTTP"
43 --"http_files"; -- Serve static files from a directory over HTTP
44
45 -- Other specific functionality
46 --"posix"; -- POSIX functionality, sends server to background, enables syslog, etc.
47 --"groups"; -- Shared roster support
48 --"announce"; -- Send announcement to all online users
49 --"welcome"; -- Welcome users who register accounts
50 --"watchregistrations"; -- Alert admins of registrations
51 --"motd"; -- Send a message to users when they log in
52 --"legacyauth"; -- Legacy authentication. Only used by some old clients and bots.
53};
54
55-- These modules are auto-loaded, but should you want
56-- to disable them then uncomment them here:
57modules_disabled = {
58 -- "offline"; -- Store offline messages
59 -- "c2s"; -- Handle client connections
60 "s2s"; -- Handle server-to-server connections
61};
62
63-- Disable account creation by default, for security
64allow_registration = true;
65-- For more information see http://prosody.im/doc/creating_accounts
66
67-- These are the SSL/TLS-related settings. If you don't want
68-- to use SSL/TLS, you may comment or remove this
69 ssl = {
70 key = "../certs/protos.org.key";
71 certificate = "../certs/protos.org.crt";
72 }
73
74-- Force clients to use encrypted connections? This option will
75-- prevent clients from authenticating unless they are using encryption.
76
77c2s_require_encryption = false
78c2s_ports = { 5228 }
79
80-- Force certificate authentication for server-to-server connections?
81-- This provides ideal security, but requires servers you communicate
82-- with to support encryption AND present valid, trusted certificates.
83-- NOTE: Your version of LuaSec must support certificate verification!
84-- For more information see http://prosody.im/doc/s2s#security
85
86s2s_secure_auth = false
87
88-- Many servers don't support encryption or have invalid or self-signed
89-- certificates. You can list domains here that will not be required to
90-- authenticate using certificates. They will be authenticated using DNS.
91
92--s2s_insecure_domains = { "gmail.com" }
93
94-- Even if you leave s2s_secure_auth disabled, you can still require valid
95-- certificates for some domains by specifying a list here.
96
97--s2s_secure_domains = { "jabber.org" }
98
99-- Select the authentication backend to use. The 'internal' providers
100-- use Prosody's configured data storage to store the authentication data.
101-- To allow Prosody to offer secure authentication mechanisms to clients, the
102-- default provider stores passwords in plaintext. If you do not trust your
103-- server please see http://prosody.im/doc/modules/mod_auth_internal_hashed
104-- for information about using the hashed backend.
105
106
107-- Select the storage backend to use. By default Prosody uses flat files
108-- in its configured data directory, but it also supports more backends
109-- through modules. An "sql" backend is included by default, but requires
110-- additional dependencies. See http://prosody.im/doc/storage for more info.
111
112--storage = "sql" -- Default is "internal"
113
114-- For the "sql" backend, you can uncomment *one* of the below to configure:
115--sql = { driver = "SQLite3", database = "prosody.sqlite" } -- Default. 'database' is the filename.
116--sql = { driver = "MySQL", database = "prosody", username = "prosody", password = "secret", host = "localhost" }
117--sql = { driver = "PostgreSQL", database = "prosody", username = "prosody", password = "secret", host = "localhost" }
118
119-- Logging configuration
120-- For advanced logging see http://prosody.im/doc/logging
121log = {
122 -- Log files (change 'info' to 'debug' for debug logs):
123 info = "/var/log/prosody/prosody-test.log";
124 error = "/var/log/prosody/prosody-test.err";
125 -- Syslog:
126 { levels = { "error" }; to = "syslog"; };
127}
128
129----------- Virtual hosts -----------
130-- You need to add a VirtualHost entry for each domain you wish Prosody to serve.
131-- Settings under each VirtualHost entry apply *only* to that host.
132
133VirtualHost "localhost"
134
135VirtualHost "protos-tpe"
136
137VirtualHost "test.com"
138 -- enabled = true -- Remove this line to enable this host
139
140 -- Assign this host a certificate for TLS, otherwise it would use the one
141 -- set in the global section (if any).
142 -- Note that old-style SSL on port 5223 only supports one certificate, and will always
143 -- use the global one.
144 ssl = {
145 key = "/etc/prosody/certs/test.key";
146 certificate = "/etc/prosody/certs/test.crt";
147 }
148
149------ Components ------
150-- You can specify components to add hosts that provide special services,
151-- like multi-user conferences, and transports.
152-- For more information on components, see http://prosody.im/doc/components
153
154---Set up a MUC (multi-user chat) room server on conference.example.com:
155--Component "conference.example.com" "muc"
156
157-- Set up a SOCKS5 bytestream proxy for server-proxied file transfers:
158Component "proxy.example.com" "proxy65"
159proxy65_ports = { 5223 }
160proxy65_interfaces = { "127.0.0.1" }