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 = { "[email protected]", "[email protected]" }
  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. -- Other specific functionality
  48. "admin_telnet"; -- Opens admin telnet interface on localhost port 5582
  49. "bosh"; -- Enable BOSH clients, aka "Jabber over HTTP"
  50. --"httpserver"; -- Serve static files from a directory over HTTP
  51. "groups"; -- Shared roster support
  52. "announce"; -- Send announcement to all online users
  53. "welcome"; -- Welcome users who register accounts
  54. --"watchregistrations"; -- Alert admins of registrations
  55. -- Debian: do not remove this module, or you lose syslog
  56. -- support
  57. "posix"; -- POSIX functionality, sends server to background, enables syslog, etc.
  58. };
  59. --compression_level = 9
  60. -- These modules are auto-loaded, should you
  61. -- for (for some mad reason) want to disable
  62. -- them then uncomment them below
  63. modules_disabled = {
  64. -- "presence";
  65. -- "message";
  66. -- "iq";
  67. };
  68. -- Disable account creation by default, for security
  69. -- For more information see http://prosody.im/doc/creating_accounts
  70. allow_registration = false;
  71. -- Debian:
  72. -- send the server to background.
  73. --
  74. daemonize = true;
  75. -- Debian:
  76. -- Please, don't change this option since /var/run/prosody/
  77. -- is one of the few directories Prosody is allowed to write to
  78. --
  79. pidfile = "/var/run/prosody/prosody.pid";
  80. -- These are the SSL/TLS-related settings. If you don't want
  81. -- to use SSL/TLS, you may comment or remove this
  82. ssl = {
  83. key = "/etc/ssl/private/xmpp.galex-713.eu.key";
  84. certificate = "/etc/ssl/certs/xmpp.galex-713.eu.pem";
  85. }
  86. -- Require encryption on client/server connections?
  87. --c2s_require_encryption = false
  88. --s2s_require_encryption = false
  89. -- Logging configuration
  90. -- For advanced logging see http://prosody.im/doc/logging
  91. log = "/var/log/prosody/prosody.log";
  92. debug = true; -- Log debug messages?
  93. -- Debian:
  94. -- all to var/log
  95. -- errors to syslog also
  96. log = {
  97. { levels = { "error" }; to = "syslog"; };
  98. { levels = { "error" }; to = "file"; filename = "/var/log/prosody/prosody.err"; };
  99. -- Change "info" to "debug" for more verbose logging
  100. { levels = { min = "info" }; to = "file"; filename = "/var/log/prosody/prosody.log"; };
  101. }
  102. -- Loads all configuration files in /etc/prosody/conf.d/ --
  103. Include "conf.d/*.cfg.lua"