您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

prosody.cfg.lua.scalable.example 4.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. -- Prosody XMPP Server Configuration
  2. ---------- Server-wide settings ----------
  3. -- Settings in this section apply to the whole server and are the default settings
  4. -- for any virtual hosts
  5. admins = { }
  6. network_backend = "epoll"
  7. -- This is the list of modules Prosody will load on startup.
  8. -- It looks for mod_modulename.lua in the plugins folder, so make sure that exists too.
  9. -- Documentation for bundled modules can be found at: https://prosody.im/doc/modules
  10. modules_enabled = {
  11. -- Generally required
  12. "roster"; -- Allow users to have a roster. Recommended ;)
  13. "saslauth"; -- Authentication for clients and servers. Recommended if you want to log in.
  14. "tls"; -- Add support for secure TLS on c2s/s2s connections
  15. "dialback"; -- s2s dialback support
  16. "disco"; -- Service discovery
  17. -- Not essential, but recommended
  18. "carbons"; -- Keep multiple clients in sync
  19. "pep"; -- Enables users to publish their avatar, mood, activity, playing music and more
  20. "private"; -- Private XML storage (for room bookmarks, etc.)
  21. "blocklist"; -- Allow users to block communications with other users
  22. "vcard4"; -- User profiles (stored in PEP)
  23. "vcard_legacy"; -- Conversion between legacy vCard and PEP Avatar, vcard
  24. -- Nice to have
  25. "version"; -- Replies to server version requests
  26. "uptime"; -- Report how long server has been running
  27. "time"; -- Let others know the time here on this server
  28. "ping"; -- Replies to XMPP pings with pongs
  29. "register"; -- Allow users to register on this server using a client and change passwords
  30. --"mam"; -- Store messages in an archive and allow users to access it
  31. --"csi_simple"; -- Simple Mobile optimizations
  32. -- Admin interfaces
  33. "admin_adhoc"; -- Allows administration via an XMPP client that supports ad-hoc commands
  34. --"admin_telnet"; -- Opens telnet console interface on localhost port 5582
  35. -- HTTP modules
  36. --"bosh"; -- Enable BOSH clients, aka "Jabber over HTTP"
  37. --"websocket"; -- XMPP over WebSockets
  38. --"http_files"; -- Serve static files from a directory over HTTP
  39. -- Other specific functionality
  40. --"limits"; -- Enable bandwidth limiting for XMPP connections
  41. --"groups"; -- Shared roster support
  42. --"server_contact_info"; -- Publish contact information for this service
  43. --"announce"; -- Send announcement to all online users
  44. --"welcome"; -- Welcome users who register accounts
  45. --"watchregistrations"; -- Alert admins of registrations
  46. --"motd"; -- Send a message to users when they log in
  47. --"legacyauth"; -- Legacy authentication. Only used by some old clients and bots.
  48. --"proxy65"; -- Enables a file transfer proxy service which clients behind NAT can use
  49. }
  50. -- These modules are auto-loaded, but should you want
  51. -- to disable them then uncomment them here:
  52. modules_disabled = {
  53. --"offline"; -- Store offline messages
  54. --"c2s"; -- Handle client connections
  55. --"s2s"; -- Handle server-to-server connections
  56. --"posix"; -- POSIX functionality, sends server to background, enables syslog, etc.
  57. }
  58. -- Disable account creation by default, for security
  59. -- For more information see https://prosody.im/doc/creating_accounts
  60. allow_registration = false
  61. -- Force clients to use encrypted connections? This option will
  62. -- prevent clients from authenticating unless they are using encryption.
  63. c2s_require_encryption = true
  64. -- Force servers to use encrypted connections? This option will
  65. -- prevent servers from authenticating unless they are using encryption.
  66. s2s_require_encryption = true
  67. -- Force certificate authentication for server-to-server connections?
  68. s2s_secure_auth = false
  69. -- Required for init scripts and prosodyctl
  70. pidfile = "/var/run/prosody/prosody.pid"
  71. -- Select the authentication backend to use. The 'internal' providers
  72. -- use Prosody's configured data storage to store the authentication data.
  73. authentication = "internal_hashed"
  74. archive_expires_after = "1w" -- Remove archived messages after 1 week
  75. -- Logging configuration
  76. -- For advanced logging see https://prosody.im/doc/logging
  77. log = {
  78. info = "/var/log/prosody/prosody.log"; -- Change 'info' to 'debug' for verbose logging
  79. error = "/var/log/prosody/prosody.err";
  80. --"*syslog"; -- Uncomment this for logging to syslog
  81. --"*console"; -- Log to the console, useful for debugging with daemonize=false
  82. }
  83. -- Location of directory to find certificates in (relative to main config file):
  84. certificates = "certs"
  85. VirtualHost "localhost"
  86. Include "conf.d/*.cfg.lua"