Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Example: admins = { "[email protected]", "[email protected]" }
- admins = { }
- -- Enable use of libevent for better performance under high load
- --use_libevent = true;
- modules_enabled = { "roster"; "saslauth"; "tls"; "dialback"; "disco"; "posix"; "private"; "vcard"; "version"; "uptime"; "time"; "ping"; "pep"; "register"; "admin_adhoc"; };
- -- modules_disabled = { "offline"; "c2s"; "s2s"; };
- allow_registration = false;
- ssl = { key = "/etc/ssl/private/example.com.key"; certificate = "/etc/ssl/certs/example.com.crt"; }
- c2s_require_encryption = true
- s2s_secure_auth = true
- --s2s_insecure_domains = { "gmail.com" }
- --s2s_secure_domains = { "jabber.org" }
- -- Required for init scripts and prosodyctl
- pidfile = "/var/run/prosody/prosody.pid"
- authentication = "ldap"
- ldap_server = "ld1.example.com:636";
- ldap_base = "dc=example,dc=com";
- ldap_rootdn = "cn=admin,dc=example,dc=com";
- ldap_password = "password";
- ldap_filter = "(!(memberOf=cn=disabled_users,dc=example,dc=com))";
- ldap_scope = "subtree";
- ldap_tls = true;
- storage = "ldap"
- ldap = {
- hostname = 'ld1.example.com',
- bind_dn = 'cn=admin,dc=example,dc=com',
- bind_password = 'password',
- user = {
- basedn = 'ou=people,dc=example,dc=com',
- filter = '',
- usernamefield = 'uid',
- namefield = 'displayName',
- },
- groups = {
- basedn = 'ou=domains,ou=groups,dc=example,dc=com',
- memberfield = 'memberUid',
- namefield = 'cn',
- { name = 'Support', cn = 'support', admin = false, },
- },
- vcard_format = {
- displayname = 'displayName', -- Consult the vCard configuration section in the README
- nickname = 'givenName',
- photo = { type = 'image/jpeg', binval = 'jpegPhoto', },
- },
- }
- -- Logging configuration
- log = { info = "/var/log/prosody/prosody.log"; error = "/var/log/prosody/prosody.err"; "*syslog"; }
- ----------- Virtual hosts -----------
- VirtualHost
- "example.com"
- enabled = true
- authentication = "ldap"
- debug = true;
- anonymous_login = false
- ssl = { key = "/etc/ssl/private/example.com.key"; certificate = "/etc/ssl/certs/example.com.crt"; cafile = "/etc/ssl/certs/example_ca.crt"; }
Advertisement
Add Comment
Please, Sign In to add comment