· 7 years ago · Nov 12, 2018, 09:10 PM
1-- Prosody Example Configuration File
2--
3-- Information on configuring Prosody can be found on our
4-- website at http://prosody.im/doc/configure
5--
6-- Tip: You can check that the syntax of this file is correct
7-- when you have finished by running: luac -p prosody.cfg.lua
8-- If there are any errors, it will let you know what and where
9-- they are, otherwise it will keep quiet.
10--
11-- The only thing left to do is rename this file to remove the .dist ending, and fill in the
12-- blanks. Good luck, and happy Jabbering!
13
14
15---------- Server-wide settings ----------
16-- Settings in this section apply to the whole server and are the default settings
17-- for any virtual hosts
18
19-- This is a (by default, empty) list of accounts that are admins
20-- for the server. Note that you must create the accounts separately
21-- (see http://prosody.im/doc/creating_accounts for info)
22-- Example: admins = { "user1@example.com", "user2@example.net" }
23-- admins = { yyyy } --> Email hinzugefügt <--
24-- admins = { xxxx }
25-- Enable use of libevent for better performance under high load
26-- For more information see: http://prosody.im/doc/libevent
27--use_libevent = true;
28
29-- This is the list of modules Prosody will load on startup.
30-- It looks for mod_modulename.lua in the plugins folder, so make sure that exists too.
31-- Documentation on modules can be found at: http://prosody.im/doc/modules
32--> von Ralf
33plugin_paths = { "/usr/local/prosody-modules/" }
34--plugin_paths = { "/var/www/vhosts/my-server.net/admin.my-server.net" }
35-- von Ralf <--
36
37modules_enabled = {
38
39 -- Generally required
40 "roster"; -- Allow users to have a roster. Recommended ;)
41 "saslauth"; -- Authentication for clients and servers. Recommended if you want to log in.
42 "tls"; -- Add support for secure TLS on c2s/s2s connections
43 "dialback"; -- s2s dialback support
44 "disco"; -- Service discovery
45
46 -- Not essential, but recommended
47 "private"; -- Private XML storage (for room bookmarks, etc.)
48 "vcard"; -- Allow users to set vCards
49
50 -- These are commented by default as they have a performance impact
51 --"privacy"; -- Support privacy lists
52 --"compression"; -- Stream compression (Note: Requires installed lua-zlib RPM package)
53
54 -- Nice to have
55 "version"; -- Replies to server version requests
56 "uptime"; -- Report how long server has been running
57 "time"; -- Let others know the time here on this server
58 "ping"; -- Replies to XMPP pings with pongs
59 "pep"; -- Enables users to publish their mood, activity, playing music and more
60 "register"; -- Allow users to register on this server using a client and change passwords
61
62 -- Admin interfaces
63 "admin_adhoc"; -- Allows administration via an XMPP client that supports ad-hoc commands
64 "admin_telnet"; -- Opens telnet console interface on localhost port 5582
65
66 -- HTTP modules
67 --"bosh"; -- Enable BOSH clients, aka "Jabber over HTTP"
68 "http_files"; -- Serve static files from a directory over HTTP
69
70 -- Other specific functionality
71 --"posix"; -- POSIX functionality, sends server to background, enables syslog, etc.
72 --"groups"; -- Shared roster support
73 --"announce"; -- Send announcement to all online users
74 --"welcome"; -- Welcome users who register accounts
75 --"watchregistrations"; -- Alert admins of registrations
76 --"motd"; -- Send a message to users when they log in
77 --"legacyauth"; -- Legacy authentication. Only used by some old clients and bots.
78--> von Ralf
79--Include "conf.d/mod_load";
80"proxy65";
81"listusers";
82"admin_web";
83"http_upload";
84-- von Ralf <--
85};
86
87-- These modules are auto-loaded, but should you want
88-- to disable them then uncomment them here:
89modules_disabled = {
90 -- "offline"; -- Store offline messages
91 -- "c2s"; -- Handle client connections
92 -- "s2s"; -- Handle server-to-server connections
93};
94
95-- Disable account creation by default, for security
96-- For more information see http://prosody.im/doc/creating_accounts
97allow_registration = false;
98
99-- These are the SSL/TLS-related settings. If you don't want
100-- to use SSL/TLS, you may comment or remove this
101ssl = {
102 key = "/etc/prosody/certs/my-server.net.key";
103 certificate = "/etc/prosody/certs/my-server.net.crt";
104}
105
106-- Force clients to use encrypted connections? This option will
107-- prevent clients from authenticating unless they are using encryption.
108
109c2s_require_encryption = true --false
110
111-- Force certificate authentication for server-to-server connections?
112-- This provides ideal security, but requires servers you communicate
113-- with to support encryption AND present valid, trusted certificates.
114-- NOTE: Your version of LuaSec must support certificate verification!
115-- For more information see http://prosody.im/doc/s2s#security
116
117s2s_secure_auth = false
118
119-- Many servers don't support encryption or have invalid or self-signed
120-- certificates. You can list domains here that will not be required to
121-- authenticate using certificates. They will be authenticated using DNS.
122
123--s2s_insecure_domains = { "gmail.com" }
124
125-- Even if you leave s2s_secure_auth disabled, you can still require valid
126-- certificates for some domains by specifying a list here.
127
128--s2s_secure_domains = { "jabber.org" }
129
130-- Select the authentication backend to use. The 'internal' providers
131-- use Prosody's configured data storage to store the authentication data.
132-- To allow Prosody to offer secure authentication mechanisms to clients, the
133-- default provider stores passwords in plaintext. If you do not trust your
134-- server please see http://prosody.im/doc/modules/mod_auth_internal_hashed
135-- for information about using the hashed backend.
136
137authentication = "internal_hashed"---plain"
138
139-- Select the storage backend to use. By default Prosody uses flat files
140-- in its configured data directory, but it also supports more backends
141-- through modules. An "sql" backend is included by default, but requires
142-- additional dependencies. See http://prosody.im/doc/storage for more info.
143
144storage = "sql" -- Default is "internal" (Note: "sql" requires installed
145-- lua-dbi RPM package)
146
147-- For the "sql" backend, you can uncomment *one* of the below to configure:
148--sql = { driver = "SQLite3", database = "prosody.sqlite" } -- Default. 'database' is the filename.
149sql = {
150 driver = "MySQL";
151 database = "yxc";
152 username = "yxc";
153 password = "yxc";
154 host = "localhost";
155 port = "3306";
156}
157--sql = { driver = "PostgreSQL", database = "prosody", username = "prosody", password = "secret", host = "localhost" }
158
159-- Logging configuration
160-- For advanced logging see http://prosody.im/doc/logging
161log = {
162 -- Log everything of level "info" and higher (that is, all except "debug" messages)
163 -- to /var/log/prosody/prosody.log and errors also to /var/log/prosody/prosody.err
164 info = "/var/log/prosody/prosody.log"; -- Change 'info' to 'debug' for verbose logging
165 error = "/var/log/prosody/prosody.err"; -- Log errors also to file
166 error = "*syslog"; -- ssLog errors also to syslog
167 log = "*console"; -- Log to the console, useful for debugging with daemonize=false
168}
169
170-- POSIX configuration, see also http://prosody.im/doc/modules/mod_posix
171pidfile = "/var/run/prosody/prosody.pid";
172--daemonize = false -- Default is "true"
173
174------ Additional config files ------
175-- For organizational purposes you may prefer to add VirtualHost and
176-- Component definitions in their own config files. This line includes
177-- all config files in /etc/prosody/conf.d/
178
179-- Include "/var/www/vhosts/my-server.net/conf.pros/*.cfg.lua";
180Include "conf.d/*.cfg.lua";