Advertisement
Guest User

Untitled

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