"Fossies" - the Fresh Open Source Software Archive

Member "jitsi-meet-4428/doc/example-config-files/scalable/prosody.cfg.lua.scalable.example" (23 Sep 2020, 4431 Bytes) of package /linux/misc/jitsi-meet-4428.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

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