prosody.cfg.lua 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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. ---------- Server-wide settings ----------
  14. -- Settings in this section apply to the whole server and are the default settings
  15. -- for any virtual hosts
  16. -- This is a (by default, empty) list of accounts that are admins
  17. -- for the server. Note that you must create the accounts separately
  18. -- (see http://prosody.im/doc/creating_accounts for info)
  19. -- Example: admins = { "user1@example.com", "user2@example.net" }
  20. admins = { }
  21. -- Enable use of libevent for better performance under high load
  22. -- For more information see: http://prosody.im/doc/libevent
  23. --use_libevent = true;
  24. -- This is the list of modules Prosody will load on startup.
  25. -- It looks for mod_modulename.lua in the plugins folder, so make sure that exists too.
  26. -- Documentation on modules can be found at: http://prosody.im/doc/modules
  27. modules_enabled = {
  28. -- Generally required
  29. "roster"; -- Allow users to have a roster. Recommended ;)
  30. "saslauth"; -- Authentication for clients and servers. Recommended if you want to log in.
  31. "tls"; -- Add support for secure TLS on c2s/s2s connections
  32. "dialback"; -- s2s dialback support
  33. "disco"; -- Service discovery
  34. -- Not essential, but recommended
  35. "private"; -- Private XML storage (for room bookmarks, etc.)
  36. "vcard"; -- Allow users to set vCards
  37. --"privacy"; -- Support privacy lists
  38. --"compression"; -- Stream compression
  39. -- Nice to have
  40. "legacyauth"; -- Legacy authentication. Only used by some old clients and bots.
  41. "version"; -- Replies to server version requests
  42. "uptime"; -- Report how long server has been running
  43. "time"; -- Let others know the time here on this server
  44. "ping"; -- Replies to XMPP pings with pongs
  45. "pep"; -- Enables users to publish their mood, activity, playing music and more
  46. "register"; -- Allow users to register on this server using a client and change passwords
  47. "adhoc"; -- Support for "ad-hoc commands" that can be executed with an XMPP client
  48. -- Admin interfaces
  49. "admin_adhoc"; -- Allows administration via an XMPP client that supports ad-hoc commands
  50. --"admin_telnet"; -- Opens telnet console interface on localhost port 5582
  51. -- Other specific functionality
  52. "posix"; -- POSIX functionality, sends server to background, enables syslog, etc.
  53. --"bosh"; -- Enable BOSH clients, aka "Jabber over HTTP"
  54. --"httpserver"; -- Serve static files from a directory over HTTP
  55. --"groups"; -- Shared roster support
  56. --"announce"; -- Send announcement to all online users
  57. --"welcome"; -- Welcome users who register accounts
  58. --"watchregistrations"; -- Alert admins of registrations
  59. --"motd"; -- Send a message to users when they log in
  60. };
  61. -- These modules are auto-loaded, should you
  62. -- (for some mad reason) want to disable
  63. -- them then uncomment them below
  64. modules_disabled = {
  65. -- "presence"; -- Route user/contact status information
  66. -- "message"; -- Route messages
  67. -- "iq"; -- Route info queries
  68. -- "offline"; -- Store offline messages
  69. };
  70. -- Disable account creation by default, for security
  71. -- For more information see http://prosody.im/doc/creating_accounts
  72. allow_registration = false;
  73. -- Only allow encrypted streams? Encryption is already used when
  74. -- available. These options will cause Prosody to deny connections that
  75. -- are not encrypted. Note that some servers do not support s2s
  76. -- encryption or have it disabled, including gmail.com and Google Apps
  77. -- domains.
  78. --c2s_require_encryption = false
  79. --s2s_require_encryption = false
  80. -- Select the authentication backend to use. The 'internal' providers
  81. -- use Prosody's configured data storage to store the authentication data.
  82. -- To allow Prosody to offer secure authentication mechanisms to clients, the
  83. -- default provider stores passwords in plaintext. If you do not trust your
  84. -- server please see http://prosody.im/doc/modules/mod_auth_internal_hashed
  85. -- for information about using the hashed backend.
  86. -- See http://prosody.im/doc/authentication for other possibilities including
  87. -- Cyrus SASL.
  88. authentication = "internal_plain"
  89. -- Select the storage backend to use. By default Prosody uses flat files
  90. -- in its configured data directory, but it also supports more backends
  91. -- through modules. An "sql" backend is included by default, but requires
  92. -- additional dependencies. See http://prosody.im/doc/storage for more info.
  93. --storage = "sql" -- Default is "internal"
  94. -- For the "sql" backend, you can uncomment *one* of the below to configure:
  95. --sql = { driver = "SQLite3", database = "prosody.sqlite" } -- Default. 'database' is the filename.
  96. --sql = { driver = "MySQL", database = "prosody", username = "prosody", password = "secret", host = "localhost" }
  97. --sql = { driver = "PostgreSQL", database = "prosody", username = "prosody", password = "secret", host = "localhost" }
  98. -- Logging configuration
  99. -- For advanced logging see http://prosody.im/doc/logging
  100. log = {
  101. info = "/var/log/prosody/prosody.log"; -- Change 'info' to 'debug' for verbose logging
  102. error = "/var/log/prosody/prosody.err";
  103. -- "*syslog"; -- Uncomment this for logging to syslog; needs mod_posix
  104. -- "*console"; -- Log to the console, useful for debugging with daemonize=false
  105. }
  106. -- Pidfile, used by prosodyctl and the init.d script
  107. pidfile = "/var/run/prosody/prosody.pid"
  108. -- User and group, used for daemon
  109. prosody_user = "prosody"
  110. prosody_group = "prosody"
  111. ----------- Virtual hosts -----------
  112. -- You need to add a VirtualHost entry for each domain you wish Prosody to serve.
  113. -- Settings under each VirtualHost entry apply *only* to that host.
  114. VirtualHost "localhost"
  115. VirtualHost "example.com"
  116. enabled = false -- Remove this line to enable this host
  117. -- Assign this host a certificate for TLS, otherwise it would use the one
  118. -- set in the global section (if any).
  119. -- Note that old-style SSL on port 5223 only supports one certificate, and will always
  120. -- use the global one.
  121. ssl = {
  122. key = "/etc/prosody/certs/example.com.key";
  123. certificate = "/etc/prosody/certs/example.com.crt";
  124. }
  125. ------ Components ------
  126. -- You can specify components to add hosts that provide special services,
  127. -- like multi-user conferences, and transports.
  128. -- For more information on components, see http://prosody.im/doc/components
  129. ---Set up a MUC (multi-user chat) room server on conference.example.com:
  130. --Component "conference.example.com" "muc"
  131. -- Set up a SOCKS5 bytestream proxy for server-proxied file transfers:
  132. --Component "proxy.example.com" "proxy65"
  133. ---Set up an external component (default component port is 5347)
  134. --
  135. -- External components allow adding various services, such as gateways/
  136. -- transports to other networks like ICQ, MSN and Yahoo. For more info
  137. -- see: http://prosody.im/doc/components#adding_an_external_component
  138. --
  139. --Component "gateway.example.com"
  140. -- component_secret = "password"