You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

prosody.cfg.lua-jvb.example 8.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. -- Prosody XMPP Server Configuration
  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: prosodyctl check config
  8. -- If there are any errors, it will let you know what and where
  9. -- they are, otherwise it will keep quiet.
  10. --
  11. -- Good luck, and happy Jabbering!
  12. ---------- Server-wide settings ----------
  13. -- Settings in this section apply to the whole server and are the default settings
  14. -- for any virtual hosts
  15. -- This is a (by default, empty) list of accounts that are admins
  16. -- for the server. Note that you must create the accounts separately
  17. -- (see http://prosody.im/doc/creating_accounts for info)
  18. -- Example: admins = { "user1@example.com", "user2@example.net" }
  19. admins = { }
  20. daemonize = true
  21. cross_domain_bosh = true;
  22. component_ports = { 5347 }
  23. -- Enable use of libevent for better performance under high load
  24. -- For more information see: http://prosody.im/doc/libevent
  25. --use_libevent = true
  26. -- This is the list of modules Prosody will load on startup.
  27. -- It looks for mod_modulename.lua in the plugins folder, so make sure that exists too.
  28. -- Documentation on modules can be found at: http://prosody.im/doc/modules
  29. modules_enabled = {
  30. -- Generally required
  31. "roster"; -- Allow users to have a roster. Recommended ;)
  32. "saslauth"; -- Authentication for clients and servers. Recommended if you want to log in.
  33. "tls"; -- Add support for secure TLS on c2s/s2s connections
  34. "dialback"; -- s2s dialback support
  35. "disco"; -- Service discovery
  36. "posix"; -- POSIX functionality, sends server to background, enables syslog, etc.
  37. -- Not essential, but recommended
  38. "private"; -- Private XML storage (for room bookmarks, etc.)
  39. "vcard"; -- Allow users to set vCards
  40. -- These are commented by default as they have a performance impact
  41. --"privacy"; -- Support privacy lists
  42. "compression"; -- Stream compression (requires the lua-zlib package installed)
  43. -- Nice to have
  44. "version"; -- Replies to server version requests
  45. "uptime"; -- Report how long server has been running
  46. "time"; -- Let others know the time here on this server
  47. "ping"; -- Replies to XMPP pings with pongs
  48. "pep"; -- Enables users to publish their mood, activity, playing music and more
  49. "register"; -- Allow users to register on this server using a client and change passwords
  50. -- Admin interfaces
  51. "admin_adhoc"; -- Allows administration via an XMPP client that supports ad-hoc commands
  52. --"admin_telnet"; -- Opens telnet console interface on localhost port 5582
  53. -- HTTP modules
  54. "bosh"; -- Enable BOSH clients, aka "Jabber over HTTP"
  55. --"http_files"; -- Serve static files from a directory over HTTP
  56. -- Other specific functionality
  57. --"groups"; -- Shared roster support
  58. --"announce"; -- Send announcement to all online users
  59. --"welcome"; -- Welcome users who register accounts
  60. --"watchregistrations"; -- Alert admins of registrations
  61. --"motd"; -- Send a message to users when they log in
  62. --"legacyauth"; -- Legacy authentication. Only used by some old clients and bots.
  63. -- jitmeet
  64. --"smacks";
  65. --"carbons";
  66. --"mam";
  67. --"lastactivity";
  68. --"offline";
  69. "pubsub";
  70. --"adhoc";
  71. --"websocket";
  72. --"http_altconnect";
  73. "turncredentials";
  74. }
  75. -- These modules are auto-loaded, but should you want
  76. -- to disable them then uncomment them here:
  77. modules_disabled = {
  78. -- "offline"; -- Store offline messages
  79. -- "c2s"; -- Handle client connections
  80. -- "s2s"; -- Handle server-to-server connections
  81. }
  82. -- Disable account creation by default, for security
  83. -- For more information see http://prosody.im/doc/creating_accounts
  84. allow_registration = false
  85. -- These are the SSL/TLS-related settings. If you don't want
  86. -- to use SSL/TLS, you may comment or remove this
  87. ssl = {
  88. key = "/etc/prosody/certs/localhost.key";
  89. certificate = "/etc/prosody/certs/localhost.crt";
  90. }
  91. -- Force clients to use encrypted connections? This option will
  92. -- prevent clients from authenticating unless they are using encryption.
  93. -- c2s_require_encryption = true
  94. -- Force certificate authentication for server-to-server connections?
  95. -- This provides ideal security, but requires servers you communicate
  96. -- with to support encryption AND present valid, trusted certificates.
  97. -- NOTE: Your version of LuaSec must support certificate verification!
  98. -- For more information see http://prosody.im/doc/s2s#security
  99. -- s2s_secure_auth = false
  100. -- Many servers don't support encryption or have invalid or self-signed
  101. -- certificates. You can list domains here that will not be required to
  102. -- authenticate using certificates. They will be authenticated using DNS.
  103. --s2s_insecure_domains = { "gmail.com" }
  104. -- Even if you leave s2s_secure_auth disabled, you can still require valid
  105. -- certificates for some domains by specifying a list here.
  106. --s2s_secure_domains = { "jabber.org" }
  107. -- Required for init scripts and prosodyctl
  108. pidfile = "/var/run/prosody/prosody.pid"
  109. -- Select the authentication backend to use. The 'internal' providers
  110. -- use Prosody's configured data storage to store the authentication data.
  111. -- To allow Prosody to offer secure authentication mechanisms to clients, the
  112. -- default provider stores passwords in plaintext. If you do not trust your
  113. -- server please see http://prosody.im/doc/modules/mod_auth_internal_hashed
  114. -- for information about using the hashed backend.
  115. -- authentication = "internal_plain"
  116. authentication = "internal_hashed"
  117. -- Select the storage backend to use. By default Prosody uses flat files
  118. -- in its configured data directory, but it also supports more backends
  119. -- through modules. An "sql" backend is included by default, but requires
  120. -- additional dependencies. See http://prosody.im/doc/storage for more info.
  121. --storage = "sql" -- Default is "internal"
  122. -- For the "sql" backend, you can uncomment *one* of the below to configure:
  123. --sql = { driver = "SQLite3", database = "prosody.sqlite" } -- Default. 'database' is the filename.
  124. --sql = { driver = "MySQL", database = "prosody", username = "prosody", password = "secret", host = "localhost" }
  125. --sql = { driver = "PostgreSQL", database = "prosody", username = "prosody", password = "secret", host = "localhost" }
  126. storage = {archive2 = "sql2"}
  127. sql = { driver = "SQLite3", database = "prosody.sqlite" }
  128. default_archive_policy = "roster"
  129. -- Logging configuration
  130. -- For advanced logging see http://prosody.im/doc/logging
  131. log = {
  132. info = "/var/log/prosody/prosody.log"; -- Change 'info' to 'debug' for verbose logging
  133. error = "/var/log/prosody/prosody.err";
  134. "*syslog";
  135. }
  136. ----------- Virtual hosts -----------
  137. -- You need to add a VirtualHost entry for each domain you wish Prosody to serve.
  138. -- Settings under each VirtualHost entry apply *only* to that host.
  139. -- VirtualHost "localhost"
  140. VirtualHost "jitmeet.example.com"
  141. -- enabled = false -- Remove this line to enable this host
  142. authentication = "anonymous"
  143. -- Assign this host a certificate for TLS, otherwise it would use the one
  144. -- set in the global section (if any).
  145. -- Note that old-style SSL on port 5223 only supports one certificate, and will always
  146. -- use the global one.
  147. ssl = {
  148. key = "/etc/prosody/certs/jitmeet.example.com.key";
  149. certificate = "/etc/prosody/certs/jitmeet.example.com.crt";
  150. }
  151. ------ Components ------
  152. -- You can specify components to add hosts that provide special services,
  153. -- like multi-user conferences, and transports.
  154. -- For more information on components, see http://prosody.im/doc/components
  155. ---Set up a MUC (multi-user chat) room server on conference.example.com:
  156. --Component "conference.example.com" "muc"
  157. -- Set up a SOCKS5 bytestream proxy for server-proxied file transfers:
  158. --Component "proxy.example.com" "proxy65"
  159. ---Set up an external component (default component port is 5347)
  160. --
  161. -- External components allow adding various services, such as gateways/
  162. -- transports to other networks like ICQ, MSN and Yahoo. For more info
  163. -- see: http://prosody.im/doc/components#adding_an_external_component
  164. --
  165. --Component "gateway.example.com"
  166. -- component_secret = "password"
  167. Component "conference.jitmeet.example.com" "muc"
  168. Component "jitsi-videobridge.jitmeet.example.com"
  169. component_secret = "jitmeetSecret"