"Fossies" - the Fresh Open Source Software Archive

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