Software /
code /
prosody
Annotate
prosody.cfg.lua.dist @ 6003:28a90f5fea46
modulemanager: Always load a platform-specific module, add stub modules for Windows and unknown platforms
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 26 Jan 2014 21:16:24 +0100 (2014-01-26) |
parent | 5806:c914f4322581 |
child | 6037:7bbe22d8dd09 |
rev | line source |
---|---|
2982
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
1 -- Prosody Example Configuration File |
3412
7c66519f4973
prosody.cfg.lua.dist: Fixed trailing whitespace.
Waqas Hussain <waqas20@gmail.com>
parents:
3273
diff
changeset
|
2 -- |
2982
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
3 -- Information on configuring Prosody can be found on our |
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
4 -- website at http://prosody.im/doc/configure |
3412
7c66519f4973
prosody.cfg.lua.dist: Fixed trailing whitespace.
Waqas Hussain <waqas20@gmail.com>
parents:
3273
diff
changeset
|
5 -- |
2982
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
6 -- Tip: You can check that the syntax of this file is correct |
5615
b678868cf2d8
prosody.cfg.lua.dist: Suggest 'prosodyctl check config' instead of 'luac -p'
Matthew Wild <mwild1@gmail.com>
parents:
5573
diff
changeset
|
7 -- when you have finished by running: prosodyctl check config |
2982
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
8 -- If there are any errors, it will let you know what and where |
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
9 -- they are, otherwise it will keep quiet. |
2024
46a9c7c99476
prosody.cfg.lua.dist: Convert to unix line endings from DOS
Matthew Wild <mwild1@gmail.com>
parents:
1810
diff
changeset
|
10 -- |
2982
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
11 -- The only thing left to do is rename this file to remove the .dist ending, and fill in the |
2024
46a9c7c99476
prosody.cfg.lua.dist: Convert to unix line endings from DOS
Matthew Wild <mwild1@gmail.com>
parents:
1810
diff
changeset
|
12 -- blanks. Good luck, and happy Jabbering! |
46a9c7c99476
prosody.cfg.lua.dist: Convert to unix line endings from DOS
Matthew Wild <mwild1@gmail.com>
parents:
1810
diff
changeset
|
13 |
2982
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
14 |
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
15 ---------- Server-wide settings ---------- |
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
16 -- Settings in this section apply to the whole server and are the default settings |
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
17 -- for any virtual hosts |
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
18 |
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
19 -- This is a (by default, empty) list of accounts that are admins |
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
20 -- for the server. Note that you must create the accounts separately |
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
21 -- (see http://prosody.im/doc/creating_accounts for info) |
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
22 -- Example: admins = { "user1@example.com", "user2@example.net" } |
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
23 admins = { } |
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
24 |
2984 | 25 -- Enable use of libevent for better performance under high load |
26 -- For more information see: http://prosody.im/doc/libevent | |
5624
187f734bc996
prosody.cfg.lua: Remove some more sneaky ';' characters from the config
Matthew Wild <mwild1@gmail.com>
parents:
5623
diff
changeset
|
27 --use_libevent = true |
2984 | 28 |
2982
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
29 -- This is the list of modules Prosody will load on startup. |
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
30 -- It looks for mod_modulename.lua in the plugins folder, so make sure that exists too. |
2984 | 31 -- Documentation on modules can be found at: http://prosody.im/doc/modules |
2982
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
32 modules_enabled = { |
2024
46a9c7c99476
prosody.cfg.lua.dist: Convert to unix line endings from DOS
Matthew Wild <mwild1@gmail.com>
parents:
1810
diff
changeset
|
33 |
2982
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
34 -- Generally required |
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
35 "roster"; -- Allow users to have a roster. Recommended ;) |
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
36 "saslauth"; -- Authentication for clients and servers. Recommended if you want to log in. |
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
37 "tls"; -- Add support for secure TLS on c2s/s2s connections |
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
38 "dialback"; -- s2s dialback support |
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
39 "disco"; -- Service discovery |
2694
a6d80b6e9ee1
prosody.cfg.lua.dist: Update config for 0.7, most improvements from the Arch Linux package by dbb, thanks!
Matthew Wild <mwild1@gmail.com>
parents:
2408
diff
changeset
|
40 |
2982
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
41 -- Not essential, but recommended |
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
42 "private"; -- Private XML storage (for room bookmarks, etc.) |
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
43 "vcard"; -- Allow users to set vCards |
5409
8e98a58ab6a3
prosody.cfg.lua.dist: Update with new options and comments
Matthew Wild <mwild1@gmail.com>
parents:
5293
diff
changeset
|
44 |
8e98a58ab6a3
prosody.cfg.lua.dist: Update with new options and comments
Matthew Wild <mwild1@gmail.com>
parents:
5293
diff
changeset
|
45 -- These are commented by default as they have a performance impact |
2984 | 46 --"privacy"; -- Support privacy lists |
47 --"compression"; -- Stream compression | |
48 | |
2982
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
49 -- Nice to have |
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
50 "version"; -- Replies to server version requests |
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
51 "uptime"; -- Report how long server has been running |
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
52 "time"; -- Let others know the time here on this server |
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
53 "ping"; -- Replies to XMPP pings with pongs |
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
54 "pep"; -- Enables users to publish their mood, activity, playing music and more |
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
55 "register"; -- Allow users to register on this server using a client and change passwords |
3767
3ba97d1d7a62
prosody.cfg.lua.dist: Update to reflect new mod_admin_* modules
Matthew Wild <mwild1@gmail.com>
parents:
3493
diff
changeset
|
56 |
3ba97d1d7a62
prosody.cfg.lua.dist: Update to reflect new mod_admin_* modules
Matthew Wild <mwild1@gmail.com>
parents:
3493
diff
changeset
|
57 -- Admin interfaces |
3ba97d1d7a62
prosody.cfg.lua.dist: Update to reflect new mod_admin_* modules
Matthew Wild <mwild1@gmail.com>
parents:
3493
diff
changeset
|
58 "admin_adhoc"; -- Allows administration via an XMPP client that supports ad-hoc commands |
3ba97d1d7a62
prosody.cfg.lua.dist: Update to reflect new mod_admin_* modules
Matthew Wild <mwild1@gmail.com>
parents:
3493
diff
changeset
|
59 --"admin_telnet"; -- Opens telnet console interface on localhost port 5582 |
4775
ab73a32a655e
prosody.cfg.lua.dist: Rename mod_httpserver to mod_http_files, and move both it and mod_bosh to a new 'HTTP modules' category
Matthew Wild <mwild1@gmail.com>
parents:
4497
diff
changeset
|
60 |
ab73a32a655e
prosody.cfg.lua.dist: Rename mod_httpserver to mod_http_files, and move both it and mod_bosh to a new 'HTTP modules' category
Matthew Wild <mwild1@gmail.com>
parents:
4497
diff
changeset
|
61 -- HTTP modules |
ab73a32a655e
prosody.cfg.lua.dist: Rename mod_httpserver to mod_http_files, and move both it and mod_bosh to a new 'HTTP modules' category
Matthew Wild <mwild1@gmail.com>
parents:
4497
diff
changeset
|
62 --"bosh"; -- Enable BOSH clients, aka "Jabber over HTTP" |
ab73a32a655e
prosody.cfg.lua.dist: Rename mod_httpserver to mod_http_files, and move both it and mod_bosh to a new 'HTTP modules' category
Matthew Wild <mwild1@gmail.com>
parents:
4497
diff
changeset
|
63 --"http_files"; -- Serve static files from a directory over HTTP |
2694
a6d80b6e9ee1
prosody.cfg.lua.dist: Update config for 0.7, most improvements from the Arch Linux package by dbb, thanks!
Matthew Wild <mwild1@gmail.com>
parents:
2408
diff
changeset
|
64 |
2982
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
65 -- Other specific functionality |
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
66 --"posix"; -- POSIX functionality, sends server to background, enables syslog, etc. |
2984 | 67 --"groups"; -- Shared roster support |
68 --"announce"; -- Send announcement to all online users | |
69 --"welcome"; -- Welcome users who register accounts | |
70 --"watchregistrations"; -- Alert admins of registrations | |
4084
680df3c635c6
prosody.cfg.lua.dist: Add motd plugin
Matthew Wild <mwild1@gmail.com>
parents:
3907
diff
changeset
|
71 --"motd"; -- Send a message to users when they log in |
4497
f42a0833c47c
prosody.cfg.lua.dist: Comment mod_legacyauth by default (thanks Zash)
Matthew Wild <mwild1@gmail.com>
parents:
4233
diff
changeset
|
72 --"legacyauth"; -- Legacy authentication. Only used by some old clients and bots. |
5624
187f734bc996
prosody.cfg.lua: Remove some more sneaky ';' characters from the config
Matthew Wild <mwild1@gmail.com>
parents:
5623
diff
changeset
|
73 } |
2024
46a9c7c99476
prosody.cfg.lua.dist: Convert to unix line endings from DOS
Matthew Wild <mwild1@gmail.com>
parents:
1810
diff
changeset
|
74 |
5409
8e98a58ab6a3
prosody.cfg.lua.dist: Update with new options and comments
Matthew Wild <mwild1@gmail.com>
parents:
5293
diff
changeset
|
75 -- These modules are auto-loaded, but should you want |
8e98a58ab6a3
prosody.cfg.lua.dist: Update with new options and comments
Matthew Wild <mwild1@gmail.com>
parents:
5293
diff
changeset
|
76 -- to disable them then uncomment them here: |
2982
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
77 modules_disabled = { |
4089
0bcbe6c24a6e
prosody.cfg.lua: Add mod_offline to the list of modules that can be disabled, and add comments for all auto-loaded modules
Matthew Wild <mwild1@gmail.com>
parents:
4087
diff
changeset
|
78 -- "offline"; -- Store offline messages |
5409
8e98a58ab6a3
prosody.cfg.lua.dist: Update with new options and comments
Matthew Wild <mwild1@gmail.com>
parents:
5293
diff
changeset
|
79 -- "c2s"; -- Handle client connections |
8e98a58ab6a3
prosody.cfg.lua.dist: Update with new options and comments
Matthew Wild <mwild1@gmail.com>
parents:
5293
diff
changeset
|
80 -- "s2s"; -- Handle server-to-server connections |
5623
5752391fa27d
prosody.cfg.lua.dist: Remove unnecessary ';' from default config (thanks Vincent)
Matthew Wild <mwild1@gmail.com>
parents:
5615
diff
changeset
|
81 } |
2982
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
82 |
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
83 -- Disable account creation by default, for security |
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
84 -- For more information see http://prosody.im/doc/creating_accounts |
5624
187f734bc996
prosody.cfg.lua: Remove some more sneaky ';' characters from the config
Matthew Wild <mwild1@gmail.com>
parents:
5623
diff
changeset
|
85 allow_registration = false |
3412
7c66519f4973
prosody.cfg.lua.dist: Fixed trailing whitespace.
Waqas Hussain <waqas20@gmail.com>
parents:
3273
diff
changeset
|
86 |
2982
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
87 -- These are the SSL/TLS-related settings. If you don't want |
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
88 -- to use SSL/TLS, you may comment or remove this |
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
89 ssl = { |
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
90 key = "certs/localhost.key"; |
5293
fe9215155453
prosodyctl, prosody.cfg.lua.dist, certs/Makefile: Use .crt as suffix for certificates everywhere (thanks jasperixla)
Kim Alvefur <zash@zash.se>
parents:
4775
diff
changeset
|
91 certificate = "certs/localhost.crt"; |
2982
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
92 } |
2024
46a9c7c99476
prosody.cfg.lua.dist: Convert to unix line endings from DOS
Matthew Wild <mwild1@gmail.com>
parents:
1810
diff
changeset
|
93 |
5409
8e98a58ab6a3
prosody.cfg.lua.dist: Update with new options and comments
Matthew Wild <mwild1@gmail.com>
parents:
5293
diff
changeset
|
94 -- Force clients to use encrypted connections? This option will |
8e98a58ab6a3
prosody.cfg.lua.dist: Update with new options and comments
Matthew Wild <mwild1@gmail.com>
parents:
5293
diff
changeset
|
95 -- prevent clients from authenticating unless they are using encryption. |
8e98a58ab6a3
prosody.cfg.lua.dist: Update with new options and comments
Matthew Wild <mwild1@gmail.com>
parents:
5293
diff
changeset
|
96 |
5806
c914f4322581
prosody.cfg.lua.dist: Set c2s_require_encryption = true
Matthew Wild <mwild1@gmail.com>
parents:
5624
diff
changeset
|
97 c2s_require_encryption = true |
5409
8e98a58ab6a3
prosody.cfg.lua.dist: Update with new options and comments
Matthew Wild <mwild1@gmail.com>
parents:
5293
diff
changeset
|
98 |
8e98a58ab6a3
prosody.cfg.lua.dist: Update with new options and comments
Matthew Wild <mwild1@gmail.com>
parents:
5293
diff
changeset
|
99 -- Force certificate authentication for server-to-server connections? |
8e98a58ab6a3
prosody.cfg.lua.dist: Update with new options and comments
Matthew Wild <mwild1@gmail.com>
parents:
5293
diff
changeset
|
100 -- This provides ideal security, but requires servers you communicate |
8e98a58ab6a3
prosody.cfg.lua.dist: Update with new options and comments
Matthew Wild <mwild1@gmail.com>
parents:
5293
diff
changeset
|
101 -- with to support encryption AND present valid, trusted certificates. |
5573
ca9f99f7dcbc
prosody.cfg.lua.dist: Fix my s2s_secure(_auth) mess
Matthew Wild <mwild1@gmail.com>
parents:
5409
diff
changeset
|
102 -- NOTE: Your version of LuaSec must support certificate verification! |
5409
8e98a58ab6a3
prosody.cfg.lua.dist: Update with new options and comments
Matthew Wild <mwild1@gmail.com>
parents:
5293
diff
changeset
|
103 -- For more information see http://prosody.im/doc/s2s#security |
4086
c51737e6b445
prosody.cfg.lua.dist: Add note about the require_encryption options
Matthew Wild <mwild1@gmail.com>
parents:
4084
diff
changeset
|
104 |
5573
ca9f99f7dcbc
prosody.cfg.lua.dist: Fix my s2s_secure(_auth) mess
Matthew Wild <mwild1@gmail.com>
parents:
5409
diff
changeset
|
105 s2s_secure_auth = false |
5409
8e98a58ab6a3
prosody.cfg.lua.dist: Update with new options and comments
Matthew Wild <mwild1@gmail.com>
parents:
5293
diff
changeset
|
106 |
8e98a58ab6a3
prosody.cfg.lua.dist: Update with new options and comments
Matthew Wild <mwild1@gmail.com>
parents:
5293
diff
changeset
|
107 -- Many servers don't support encryption or have invalid or self-signed |
8e98a58ab6a3
prosody.cfg.lua.dist: Update with new options and comments
Matthew Wild <mwild1@gmail.com>
parents:
5293
diff
changeset
|
108 -- certificates. You can list domains here that will not be required to |
8e98a58ab6a3
prosody.cfg.lua.dist: Update with new options and comments
Matthew Wild <mwild1@gmail.com>
parents:
5293
diff
changeset
|
109 -- authenticate using certificates. They will be authenticated using DNS. |
8e98a58ab6a3
prosody.cfg.lua.dist: Update with new options and comments
Matthew Wild <mwild1@gmail.com>
parents:
5293
diff
changeset
|
110 |
5573
ca9f99f7dcbc
prosody.cfg.lua.dist: Fix my s2s_secure(_auth) mess
Matthew Wild <mwild1@gmail.com>
parents:
5409
diff
changeset
|
111 --s2s_insecure_domains = { "gmail.com" } |
5409
8e98a58ab6a3
prosody.cfg.lua.dist: Update with new options and comments
Matthew Wild <mwild1@gmail.com>
parents:
5293
diff
changeset
|
112 |
5573
ca9f99f7dcbc
prosody.cfg.lua.dist: Fix my s2s_secure(_auth) mess
Matthew Wild <mwild1@gmail.com>
parents:
5409
diff
changeset
|
113 -- Even if you leave s2s_secure_auth disabled, you can still require valid |
ca9f99f7dcbc
prosody.cfg.lua.dist: Fix my s2s_secure(_auth) mess
Matthew Wild <mwild1@gmail.com>
parents:
5409
diff
changeset
|
114 -- certificates for some domains by specifying a list here. |
5409
8e98a58ab6a3
prosody.cfg.lua.dist: Update with new options and comments
Matthew Wild <mwild1@gmail.com>
parents:
5293
diff
changeset
|
115 |
5573
ca9f99f7dcbc
prosody.cfg.lua.dist: Fix my s2s_secure(_auth) mess
Matthew Wild <mwild1@gmail.com>
parents:
5409
diff
changeset
|
116 --s2s_secure_domains = { "jabber.org" } |
2694
a6d80b6e9ee1
prosody.cfg.lua.dist: Update config for 0.7, most improvements from the Arch Linux package by dbb, thanks!
Matthew Wild <mwild1@gmail.com>
parents:
2408
diff
changeset
|
117 |
4233
3c644c3b10e2
prosody.cfg.lua.dist: Add example of 'authentication' option
Matthew Wild <mwild1@gmail.com>
parents:
4091
diff
changeset
|
118 -- Select the authentication backend to use. The 'internal' providers |
3c644c3b10e2
prosody.cfg.lua.dist: Add example of 'authentication' option
Matthew Wild <mwild1@gmail.com>
parents:
4091
diff
changeset
|
119 -- use Prosody's configured data storage to store the authentication data. |
3c644c3b10e2
prosody.cfg.lua.dist: Add example of 'authentication' option
Matthew Wild <mwild1@gmail.com>
parents:
4091
diff
changeset
|
120 -- To allow Prosody to offer secure authentication mechanisms to clients, the |
3c644c3b10e2
prosody.cfg.lua.dist: Add example of 'authentication' option
Matthew Wild <mwild1@gmail.com>
parents:
4091
diff
changeset
|
121 -- default provider stores passwords in plaintext. If you do not trust your |
3c644c3b10e2
prosody.cfg.lua.dist: Add example of 'authentication' option
Matthew Wild <mwild1@gmail.com>
parents:
4091
diff
changeset
|
122 -- server please see http://prosody.im/doc/modules/mod_auth_internal_hashed |
3c644c3b10e2
prosody.cfg.lua.dist: Add example of 'authentication' option
Matthew Wild <mwild1@gmail.com>
parents:
4091
diff
changeset
|
123 -- for information about using the hashed backend. |
3c644c3b10e2
prosody.cfg.lua.dist: Add example of 'authentication' option
Matthew Wild <mwild1@gmail.com>
parents:
4091
diff
changeset
|
124 |
3c644c3b10e2
prosody.cfg.lua.dist: Add example of 'authentication' option
Matthew Wild <mwild1@gmail.com>
parents:
4091
diff
changeset
|
125 authentication = "internal_plain" |
3c644c3b10e2
prosody.cfg.lua.dist: Add example of 'authentication' option
Matthew Wild <mwild1@gmail.com>
parents:
4091
diff
changeset
|
126 |
4087
e239504d8fff
prosody.cfg.lua.dist: Update to include storage configuration and examples for SQL
Matthew Wild <mwild1@gmail.com>
parents:
4086
diff
changeset
|
127 -- Select the storage backend to use. By default Prosody uses flat files |
e239504d8fff
prosody.cfg.lua.dist: Update to include storage configuration and examples for SQL
Matthew Wild <mwild1@gmail.com>
parents:
4086
diff
changeset
|
128 -- in its configured data directory, but it also supports more backends |
e239504d8fff
prosody.cfg.lua.dist: Update to include storage configuration and examples for SQL
Matthew Wild <mwild1@gmail.com>
parents:
4086
diff
changeset
|
129 -- through modules. An "sql" backend is included by default, but requires |
e239504d8fff
prosody.cfg.lua.dist: Update to include storage configuration and examples for SQL
Matthew Wild <mwild1@gmail.com>
parents:
4086
diff
changeset
|
130 -- additional dependencies. See http://prosody.im/doc/storage for more info. |
e239504d8fff
prosody.cfg.lua.dist: Update to include storage configuration and examples for SQL
Matthew Wild <mwild1@gmail.com>
parents:
4086
diff
changeset
|
131 |
e239504d8fff
prosody.cfg.lua.dist: Update to include storage configuration and examples for SQL
Matthew Wild <mwild1@gmail.com>
parents:
4086
diff
changeset
|
132 --storage = "sql" -- Default is "internal" |
e239504d8fff
prosody.cfg.lua.dist: Update to include storage configuration and examples for SQL
Matthew Wild <mwild1@gmail.com>
parents:
4086
diff
changeset
|
133 |
e239504d8fff
prosody.cfg.lua.dist: Update to include storage configuration and examples for SQL
Matthew Wild <mwild1@gmail.com>
parents:
4086
diff
changeset
|
134 -- For the "sql" backend, you can uncomment *one* of the below to configure: |
e239504d8fff
prosody.cfg.lua.dist: Update to include storage configuration and examples for SQL
Matthew Wild <mwild1@gmail.com>
parents:
4086
diff
changeset
|
135 --sql = { driver = "SQLite3", database = "prosody.sqlite" } -- Default. 'database' is the filename. |
e239504d8fff
prosody.cfg.lua.dist: Update to include storage configuration and examples for SQL
Matthew Wild <mwild1@gmail.com>
parents:
4086
diff
changeset
|
136 --sql = { driver = "MySQL", database = "prosody", username = "prosody", password = "secret", host = "localhost" } |
e239504d8fff
prosody.cfg.lua.dist: Update to include storage configuration and examples for SQL
Matthew Wild <mwild1@gmail.com>
parents:
4086
diff
changeset
|
137 --sql = { driver = "PostgreSQL", database = "prosody", username = "prosody", password = "secret", host = "localhost" } |
e239504d8fff
prosody.cfg.lua.dist: Update to include storage configuration and examples for SQL
Matthew Wild <mwild1@gmail.com>
parents:
4086
diff
changeset
|
138 |
2984 | 139 -- Logging configuration |
140 -- For advanced logging see http://prosody.im/doc/logging | |
3906
877262704c44
prosody.cfg.lua.dist: Update for new logging config format
Matthew Wild <mwild1@gmail.com>
parents:
3767
diff
changeset
|
141 log = { |
4090
111734f49a65
prosody.cfg.lua: Improve comment about enabling debug logging
Matthew Wild <mwild1@gmail.com>
parents:
4089
diff
changeset
|
142 info = "prosody.log"; -- Change 'info' to 'debug' for verbose logging |
3906
877262704c44
prosody.cfg.lua.dist: Update for new logging config format
Matthew Wild <mwild1@gmail.com>
parents:
3767
diff
changeset
|
143 error = "prosody.err"; |
877262704c44
prosody.cfg.lua.dist: Update for new logging config format
Matthew Wild <mwild1@gmail.com>
parents:
3767
diff
changeset
|
144 -- "*syslog"; -- Uncomment this for logging to syslog |
4091
c53610fdab62
prosody.cfg.lua: Give example for logging to console
Matthew Wild <mwild1@gmail.com>
parents:
4090
diff
changeset
|
145 -- "*console"; -- Log to the console, useful for debugging with daemonize=false |
3906
877262704c44
prosody.cfg.lua.dist: Update for new logging config format
Matthew Wild <mwild1@gmail.com>
parents:
3767
diff
changeset
|
146 } |
2984 | 147 |
2982
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
148 ----------- Virtual hosts ----------- |
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
149 -- You need to add a VirtualHost entry for each domain you wish Prosody to serve. |
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
150 -- Settings under each VirtualHost entry apply *only* to that host. |
2024
46a9c7c99476
prosody.cfg.lua.dist: Convert to unix line endings from DOS
Matthew Wild <mwild1@gmail.com>
parents:
1810
diff
changeset
|
151 |
2982
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
152 VirtualHost "localhost" |
2024
46a9c7c99476
prosody.cfg.lua.dist: Convert to unix line endings from DOS
Matthew Wild <mwild1@gmail.com>
parents:
1810
diff
changeset
|
153 |
2982
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
154 VirtualHost "example.com" |
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
155 enabled = false -- Remove this line to enable this host |
2024
46a9c7c99476
prosody.cfg.lua.dist: Convert to unix line endings from DOS
Matthew Wild <mwild1@gmail.com>
parents:
1810
diff
changeset
|
156 |
46a9c7c99476
prosody.cfg.lua.dist: Convert to unix line endings from DOS
Matthew Wild <mwild1@gmail.com>
parents:
1810
diff
changeset
|
157 -- Assign this host a certificate for TLS, otherwise it would use the one |
46a9c7c99476
prosody.cfg.lua.dist: Convert to unix line endings from DOS
Matthew Wild <mwild1@gmail.com>
parents:
1810
diff
changeset
|
158 -- set in the global section (if any). |
46a9c7c99476
prosody.cfg.lua.dist: Convert to unix line endings from DOS
Matthew Wild <mwild1@gmail.com>
parents:
1810
diff
changeset
|
159 -- Note that old-style SSL on port 5223 only supports one certificate, and will always |
46a9c7c99476
prosody.cfg.lua.dist: Convert to unix line endings from DOS
Matthew Wild <mwild1@gmail.com>
parents:
1810
diff
changeset
|
160 -- use the global one. |
3412
7c66519f4973
prosody.cfg.lua.dist: Fixed trailing whitespace.
Waqas Hussain <waqas20@gmail.com>
parents:
3273
diff
changeset
|
161 ssl = { |
2024
46a9c7c99476
prosody.cfg.lua.dist: Convert to unix line endings from DOS
Matthew Wild <mwild1@gmail.com>
parents:
1810
diff
changeset
|
162 key = "certs/example.com.key"; |
46a9c7c99476
prosody.cfg.lua.dist: Convert to unix line endings from DOS
Matthew Wild <mwild1@gmail.com>
parents:
1810
diff
changeset
|
163 certificate = "certs/example.com.crt"; |
2931
de4daf300f19
prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents:
2930
diff
changeset
|
164 } |
2024
46a9c7c99476
prosody.cfg.lua.dist: Convert to unix line endings from DOS
Matthew Wild <mwild1@gmail.com>
parents:
1810
diff
changeset
|
165 |
2982
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
166 ------ Components ------ |
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
167 -- You can specify components to add hosts that provide special services, |
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
168 -- like multi-user conferences, and transports. |
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
169 -- For more information on components, see http://prosody.im/doc/components |
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
170 |
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
171 ---Set up a MUC (multi-user chat) room server on conference.example.com: |
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
172 --Component "conference.example.com" "muc" |
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
173 |
2694
a6d80b6e9ee1
prosody.cfg.lua.dist: Update config for 0.7, most improvements from the Arch Linux package by dbb, thanks!
Matthew Wild <mwild1@gmail.com>
parents:
2408
diff
changeset
|
174 -- Set up a SOCKS5 bytestream proxy for server-proxied file transfers: |
2716
4e4a24a1288d
prosody.cfg.lua.dist: Fix missing quote in commented proxy config example
Matthew Wild <mwild1@gmail.com>
parents:
2694
diff
changeset
|
175 --Component "proxy.example.com" "proxy65" |
2984 | 176 |
2982
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
177 ---Set up an external component (default component port is 5347) |
3907
1e82c9b9db11
prosody.cfg.lua.dist: Add note about external gateways
Matthew Wild <mwild1@gmail.com>
parents:
3906
diff
changeset
|
178 -- |
1e82c9b9db11
prosody.cfg.lua.dist: Add note about external gateways
Matthew Wild <mwild1@gmail.com>
parents:
3906
diff
changeset
|
179 -- External components allow adding various services, such as gateways/ |
1e82c9b9db11
prosody.cfg.lua.dist: Add note about external gateways
Matthew Wild <mwild1@gmail.com>
parents:
3906
diff
changeset
|
180 -- transports to other networks like ICQ, MSN and Yahoo. For more info |
1e82c9b9db11
prosody.cfg.lua.dist: Add note about external gateways
Matthew Wild <mwild1@gmail.com>
parents:
3906
diff
changeset
|
181 -- see: http://prosody.im/doc/components#adding_an_external_component |
1e82c9b9db11
prosody.cfg.lua.dist: Add note about external gateways
Matthew Wild <mwild1@gmail.com>
parents:
3906
diff
changeset
|
182 -- |
2982
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
183 --Component "gateway.example.com" |
0395f2f34bd5
prosody.cfg.lua.dist: Refactor the default config file based on feedback from confused users
Matthew Wild <mwild1@gmail.com>
parents:
2829
diff
changeset
|
184 -- component_secret = "password" |