Advertisement
Guest User

Untitled

a guest
May 4th, 2018
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.66 KB | None | 0 0
  1. --Important for systemd
  2. -- daemonize is important for systemd. if you set this to false the systemd startup will freeze.
  3. daemonize = true
  4. pidfile = "/run/prosody/prosody.pid"
  5. plugin_paths = {"/var/lib/prosody/prosody-modules"} -- NOTE: I cloned the hg repo. make sure to cd into this and update ocassionally
  6.  
  7. -- Prosody Example Configuration File
  8. --
  9. -- Information on configuring Prosody can be found on our
  10. -- website at https://prosody.im/doc/configure
  11. --
  12. -- Tip: You can check that the syntax of this file is correct
  13. -- when you have finished by running this command:
  14. -- prosodyctl check config
  15. -- If there are any errors, it will let you know what and where
  16. -- they are, otherwise it will keep quiet.
  17. --
  18. -- The only thing left to do is rename this file to remove the .dist ending, and fill in the
  19. -- blanks. Good luck, and happy Jabbering!
  20.  
  21.  
  22. ---------- Server-wide settings ----------
  23. -- Settings in this section apply to the whole server and are the default settings
  24. -- for any virtual hosts
  25.  
  26. -- This is a (by default, empty) list of accounts that are admins
  27. -- for the server. Note that you must create the accounts separately
  28. -- (see https://prosody.im/doc/creating_accounts for info)
  29. -- Example: admins = { "user1@example.com", "user2@example.net" }
  30. admins = { "anjan@momi.ca" }
  31.  
  32. Host "*"
  33. c2s_require_encryption = true
  34.  
  35. -- Enable use of libevent for better performance under high load
  36. -- For more information see: https://prosody.im/doc/libevent
  37. --use_libevent = true
  38.  
  39. -- Prosody will always look in its source directory for modules, but
  40. -- this option allows you to specify additional locations where Prosody
  41. -- will look for modules first. For community modules, see https://modules.prosody.im/
  42. --plugin_paths = {}
  43.  
  44. -- This is the list of modules Prosody will load on startup.
  45. -- It looks for mod_modulename.lua in the plugins folder, so make sure that exists too.
  46. -- Documentation for bundled modules can be found at: https://prosody.im/doc/modules
  47. modules_enabled = {
  48.  
  49. -- Generally required
  50. "roster"; -- Allow users to have a roster. Recommended ;)
  51. "saslauth"; -- Authentication for clients and servers. Recommended if you want to log in.
  52. "tls"; -- Add support for secure TLS on c2s/s2s connections
  53. "dialback"; -- s2s dialback support
  54. "disco"; -- Service discovery
  55.  
  56. -- Not essential, but recommended
  57. "carbons"; -- Keep multiple clients in sync
  58. "pep"; -- Enables users to publish their mood, activity, playing music and more
  59. "private"; -- Private XML storage (for room bookmarks, etc.)
  60. "blocklist"; -- Allow users to block communications with other users
  61. "vcard"; -- Allow users to set vCards
  62.  
  63. -- Nice to have
  64. "version"; -- Replies to server version requests
  65. "uptime"; -- Report how long server has been running
  66. "time"; -- Let others know the time here on this server
  67. "ping"; -- Replies to XMPP pings with pongs
  68. "register"; -- Allow users to register on this server using a client and change passwords
  69. "mam"; -- Store messages in an archive and allow users to access it
  70.  
  71. -- Admin interfaces
  72. "adhoc";
  73. "invite";
  74. "admin_adhoc"; -- Allows administration via an XMPP client that supports ad-hoc commands
  75. --"admin_telnet"; -- Opens telnet console interface on localhost port 5582
  76.  
  77. -- HTTP modules
  78. "bosh"; -- Enable BOSH clients, aka "Jabber over HTTP"
  79. --"websocket"; -- XMPP over WebSockets
  80. "http_files"; -- Serve static files from a directory over HTTP
  81. "http";
  82.  
  83. -- Other specific functionality
  84. --"limits"; -- Enable bandwidth limiting for XMPP connections
  85. "groups"; -- Shared roster support
  86. --"server_contact_info"; -- Publish contact information for this service
  87. --"announce"; -- Send announcement to all online users
  88. --"welcome"; -- Welcome users who register accounts
  89. --"watchregistrations"; -- Alert admins of registrations
  90. "motd"; -- Send a message to users when they log in
  91. --"legacyauth"; -- Legacy authentication. Only used by some old clients and bots.
  92. "csi"; -- This module implements Client State Indication, a way for mobile clients to tell the server that they are sitting in someones pocket and would rather not get some less urgent things pushed to it.
  93. "cloud_notify";
  94. "smacks";
  95. "http_upload";
  96. }
  97.  
  98. -- http_upload_file_size_limit = 1048576; -- max upload size is 50 MB
  99. -- http_upload_expire_after = 60 * 60 * 24 * 7 -- a week in seconds
  100. -- http_upload_quota = 1048576 * 50; -- user quota in bytes
  101.  
  102.  
  103. motd_text = [[Welcome to the server!
  104. The upload limit is 10 Mb, the uploads are deleted after a week and you can only upload 50 files a week.
  105. If you want the file to be kept forever, upload to imgur.
  106. Please enjoy your stay.]]
  107.  
  108.  
  109. -- These modules are auto-loaded, but should you want
  110. -- to disable them then uncomment them here:
  111. modules_disabled = {
  112. -- "offline"; -- Store offline messages
  113. -- "c2s"; -- Handle client connections
  114. -- "s2s"; -- Handle server-to-server connections
  115. -- "posix"; -- POSIX functionality, sends server to background, enables syslog, etc.
  116. }
  117.  
  118. http_default_host = "momi.ca"
  119.  
  120.  
  121. -- Disable account creation by default, for security
  122. -- For more information see https://prosody.im/doc/creating_accounts
  123. allow_registration = false
  124.  
  125. -- Force clients to use encrypted connections? This option will
  126. -- prevent clients from authenticating unless they are using encryption.
  127.  
  128. c2s_require_encryption = true
  129.  
  130. -- Force servers to use encrypted connections? This option will
  131. -- prevent servers from authenticating unless they are using encryption.
  132. -- Note that this is different from authentication
  133.  
  134. s2s_require_encryption = true
  135.  
  136.  
  137. -- Force certificate authentication for server-to-server connections?
  138. -- This provides ideal security, but requires servers you communicate
  139. -- with to support encryption AND present valid, trusted certificates.
  140. -- NOTE: Your version of LuaSec must support certificate verification!
  141. -- For more information see https://prosody.im/doc/s2s#security
  142.  
  143. s2s_secure_auth = true
  144.  
  145. -- Some servers have invalid or self-signed certificates. You can list
  146. -- remote domains here that will not be required to authenticate using
  147. -- certificates. They will be authenticated using DNS instead, even
  148. -- when s2s_secure_auth is enabled.
  149.  
  150. --s2s_insecure_domains = { "insecure.example" }
  151.  
  152. -- Even if you leave s2s_secure_auth disabled, you can still require valid
  153. -- certificates for some domains by specifying a list here.
  154.  
  155. --s2s_secure_domains = { "jabber.org" }
  156.  
  157. -- Select the authentication backend to use. The 'internal' providers
  158. -- use Prosody's configured data storage to store the authentication data.
  159. -- To allow Prosody to offer secure authentication mechanisms to clients, the
  160. -- default provider stores passwords in plaintext. If you do not trust your
  161. -- server please see https://prosody.im/doc/modules/mod_auth_internal_hashed
  162. -- for information about using the hashed backend.
  163.  
  164. authentication = "internal_hashed"
  165.  
  166. -- Select the storage backend to use. By default Prosody uses flat files
  167. -- in its configured data directory, but it also supports more backends
  168. -- through modules. An "sql" backend is included by default, but requires
  169. -- additional dependencies. See https://prosody.im/doc/storage for more info.
  170.  
  171. --storage = "sql" -- Default is "internal"
  172.  
  173. -- For the "sql" backend, you can uncomment *one* of the below to configure:
  174. --sql = { driver = "SQLite3", database = "prosody.sqlite" } -- Default. 'database' is the filename.
  175. --sql = { driver = "MySQL", database = "prosody", username = "prosody", password = "secret", host = "localhost" }
  176. --sql = { driver = "PostgreSQL", database = "prosody", username = "prosody", password = "secret", host = "localhost" }
  177.  
  178.  
  179. -- Archiving configuration
  180. -- If mod_mam is enabled, Prosody will store a copy of every message. This
  181. -- is used to synchronize conversations between multiple clients, even if
  182. -- they are offline. This setting controls how long Prosody will keep
  183. -- messages in the archive before removing them.
  184.  
  185. archive_expires_after = "1w" -- Remove archived messages after 1 week
  186.  
  187. -- You can also configure messages to be stored in-memory only. For more
  188. -- archiving options, see https://prosody.im/doc/modules/mod_mam
  189.  
  190. -- Logging configuration
  191. -- For advanced logging see https://prosody.im/doc/logging
  192. log = {
  193. -- info = "prosody.log"; -- Change 'info' to 'debug' for verbose logging
  194. -- error = "prosody.err";
  195. "*syslog"; -- Uncomment this for logging to syslog
  196. -- "*console"; -- Log to the console, useful for debugging with daemonize=false
  197. -- debug = "/var/log/prosody/prosody.log"; -- Send debug and higher here
  198. }
  199.  
  200. -- Uncomment to enable statistics
  201. -- For more info see https://prosody.im/doc/statistics
  202. -- statistics = "internal"
  203.  
  204. -- Certificates
  205. -- Every virtual host and component needs a certificate so that clients and
  206. -- servers can securely verify its identity. Prosody will automatically load
  207. -- certificates/keys from the directory specified here.
  208. -- For more information, including how to use 'prosodyctl' to auto-import certificates
  209. -- (from e.g. Let's Encrypt) see https://prosody.im/doc/certificates
  210.  
  211. -- Location of directory to find certificates in (relative to main config file):
  212. certificates = "certs"
  213. http_external_url = "https://www.momi.ca/"
  214.  
  215.  
  216.  
  217.  
  218. ----------- Virtual hosts -----------
  219. -- You need to add a VirtualHost entry for each domain you wish Prosody to serve.
  220. -- Settings under each VirtualHost entry apply *only* to that host.
  221. --
  222. VirtualHost "momi.ca"
  223. enabled = true
  224.  
  225. --VirtualHost "example.com"
  226. -- certificate = "/path/to/example.crt"
  227.  
  228. ------ Components ------
  229. -- You can specify components to add hosts that provide special services,
  230. -- like multi-user conferences, and transports.
  231. -- For more information on components, see https://prosody.im/doc/components
  232.  
  233. ---Set up a MUC (multi-user chat) room server on conference.example.com:
  234. Component "conference.momi.ca" "muc"
  235. -- Modules just for conference room here
  236. modules_enable = {
  237. "mam_muc",
  238. }
  239. muc_log_by_default = true; -- Enable logging by default (can be disabled in room config)
  240. muc_log_all_rooms = false; -- set to true to force logging of all rooms
  241. -- This is the largest number of messages that are allowed to be retrieved when joining a room.
  242. max_history_messages = 20;
  243.  
  244.  
  245. Component "upload.momi.ca" "http_upload"
  246. http_upload_path = "/home/prosody/uploads"
  247.  
  248. Component "proxy.momi.ca" "proxy65"
  249.  
  250. ---Set up an external component (default component port is 5347)
  251. --
  252. -- External components allow adding various services, such as gateways/
  253. -- transports to other networks like ICQ, MSN and Yahoo. For more info
  254. -- see: https://prosody.im/doc/components#adding_an_external_component
  255. --
  256. --Component "gateway.example.com"
  257. -- component_secret = "password"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement