Guest User

prosody

a guest
Jun 16th, 2020
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.44 KB | None | 0 0
  1.  
  2. c2s_ports = { 5222, 80 }
  3. interfaces = { "ip4.ip4.ip4.ip4" }
  4. https_ports = { 443 }
  5. admins = { "[email protected]" }
  6. plugin_paths = { "/etc/prosody/prosody-modules-enabled/" }
  7. modules_enabled = {
  8.     -- Generally required
  9.         "roster"; -- Allow users to have a roster. Recommended ;)
  10.         "saslauth"; -- Authentication for clients and servers. Recommended if you want to log in.
  11.         "tls"; -- Add support for secure TLS on c2s/s2s connections
  12.         "dialback"; -- s2s dialback support
  13.         "disco"; -- Service discovery
  14.  
  15.     -- Not essential, but recommended
  16.         "carbons"; -- Keep multiple clients in sync
  17.         "pep"; -- Enables users to publish their avatar, mood, activity, playing music and more
  18.         "private"; -- Private XML storage (for room bookmarks, etc.)
  19.         "blocklist"; -- Allow users to block communications with other users
  20.         "vcard4"; -- User profiles (stored in PEP)
  21.         "vcard_legacy"; -- Conversion between legacy vCard and PEP Avatar, vcard
  22.             "turncredentials"; -- coturn support
  23.     -- Nice to have
  24.         "version"; -- Replies to server version requests
  25.         "uptime"; -- Report how long server has been running
  26.         "time"; -- Let others know the time here on this server
  27.         "ping"; -- Replies to XMPP pings with pongs
  28.         -- "register"; -- Allow users to register on this server using a client and change passwords
  29.         "mam"; -- Store messages in an archive and allow users to access it
  30.         --"csi_simple"; -- Simple Mobile optimizations
  31.         "csi"; -- XEP-0352: Client State Indication, mod_csi
  32.         "bookmarks"; -- XEP-0411: Bookmarks Conversion
  33.         "cloud_notify"; -- XEP-0357: Push Notifications
  34.         "smacks"; -- XEP-0198: Stream Management
  35.         "disco"; -- Enable mod_disco
  36.         "server_contact_info"; --  XEP-0157: Contact Addresses for XMPP Services (Abuse)
  37.         -- "auth_external"; --jsxc
  38.         "http_altconnect"; --XEP-0156: Discovering Alternative XMPP Connection Methods (HTTP)
  39.         -- "vcard_muc"; -- XEP-0153: vCard-Based Avatar (MUC)
  40.         ---"mam_muc";   -- XEP-0313: Message Archive Management (Multi-User Chat)
  41.         "log_auth"; -- log IP for fail2ban
  42.     -- Admin interfaces
  43.         "admin_adhoc"; -- Allows administration via an XMPP client that supports ad-hoc commands
  44.         --"admin_telnet"; -- Opens telnet console interface on localhost port 5582
  45.  
  46.     -- HTTP modules
  47.         "bosh"; -- Enable BOSH clients
  48.         "websocket"; -- XMPP over WebSockets
  49.         "http_files"; -- Serve static files from a directory over HTTP
  50.  
  51.     -- Other specific functionality
  52.         --"limits"; -- Enable bandwidth limiting for XMPP connections
  53.         "groups"; -- Shared roster support
  54.         "server_contact_info"; -- Publish contact information for this service
  55.         "announce"; -- Send announcement to all online users
  56.         "welcome"; -- Welcome users who register accounts
  57.         "watchregistrations"; -- Alert admins of registrations
  58.         "motd"; -- Send a message to users when they log in
  59.         --"legacyauth"; -- Legacy authentication. Only used by some old clients and bots.
  60.         "proxy65"; -- Enables a file transfer proxy service which clients behind NAT can use
  61. }
  62.  
  63. turncredentials_host = "turn.server.org"
  64. turncredentials_secret = "sharedpasswd"
  65. turncredentials_port = 80
  66. turncredentials_ttl = 86400
  67.  
  68. contact_info = {
  69.       admin = { "mailto:[email protected]", "xmpp:[email protected]" };
  70. };
  71. modules_disabled = {
  72.  
  73. }
  74. allow_registration = false
  75. c2s_require_encryption = true
  76. s2s_require_encryption = true
  77. s2s_secure_auth = true
  78.  
  79. pidfile = "/var/run/prosody/prosody.pid"
  80.  
  81. authentication = "internal_hashed"
  82.  
  83. archive_expires_after = "140w"
  84. log = {
  85.     info = "/var/log/prosody/prosody.log";
  86.     error = "/var/log/prosody/prosody.err";
  87. }
  88.  
  89. http_upload_file_size_limit = 90485760
  90. http_upload_external_file_size_limit = 934003200
  91.    statistics = "internal"
  92. certificates = "certs"
  93.  
  94. https_certificate = "/etc/prosody/certs/server.org.crt"
  95.  
  96. legacy_ssl_ports = { 5223 }
  97. ssl = {
  98.                 key = "/etc/prosody/certs/privkey.pem";
  99.                 certificate = "/etc/prosody/certs/fullchain.pem";
  100.         }
  101.  
  102. VirtualHost "server.org"
  103.  
  104.         certificate = "/etc/prosody/certs/server.org.crt"
  105.  
  106. Component "conference.server.org" "muc"
  107.         certificate = "/etc/prosody/certs/conference.server.org.crt"
  108.         modules_enabled = {
  109.                           "vcard_muc";
  110.                           "muc_mam";  
  111. }
  112.  
  113. Component "upload.server.org" "http_upload"
  114.         certificate = "/etc/prosody/certs/upload.server.org.crt"
  115. Component "rooms.server.org" "muc"
  116.         certificate = "/etc/prosody/certs/rooms.server.org.crt"
  117. modules_enabled = { "muc_mam" }
Advertisement
Add Comment
Please, Sign In to add comment