Guest User

Untitled

a guest
Dec 18th, 2013
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.21 KB | None | 0 0
  1. -- Example: admins = { "[email protected]", "[email protected]" }
  2. admins = { }
  3.  
  4. -- Enable use of libevent for better performance under high load
  5. --use_libevent = true;
  6.  
  7. modules_enabled = { "roster"; "saslauth"; "tls"; "dialback"; "disco"; "posix"; "private"; "vcard"; "version"; "uptime"; "time"; "ping"; "pep"; "register"; "admin_adhoc"; };
  8.  
  9. -- modules_disabled = { "offline"; "c2s"; "s2s"; };
  10.  
  11. allow_registration = false;
  12.  
  13. ssl = { key = "/etc/ssl/private/example.com.key"; certificate = "/etc/ssl/certs/example.com.crt"; }
  14.  
  15. c2s_require_encryption = true
  16. s2s_secure_auth = true
  17. --s2s_insecure_domains = { "gmail.com" }
  18. --s2s_secure_domains = { "jabber.org" }
  19.  
  20. -- Required for init scripts and prosodyctl
  21. pidfile = "/var/run/prosody/prosody.pid"
  22.  
  23.  
  24. authentication = "ldap"
  25. ldap_server = "ld1.example.com:636";
  26. ldap_base = "dc=example,dc=com";
  27. ldap_rootdn = "cn=admin,dc=example,dc=com";
  28. ldap_password = "password";
  29. ldap_filter = "(!(memberOf=cn=disabled_users,dc=example,dc=com))";
  30. ldap_scope = "subtree";
  31. ldap_tls = true;
  32.  
  33. storage = "ldap"
  34.  
  35. ldap = {
  36.  
  37. hostname = 'ld1.example.com',
  38. bind_dn = 'cn=admin,dc=example,dc=com',
  39. bind_password = 'password',
  40.  
  41. user = {
  42. basedn = 'ou=people,dc=example,dc=com',
  43. filter = '',
  44. usernamefield = 'uid',
  45. namefield = 'displayName',
  46. },
  47.  
  48. groups = {
  49. basedn = 'ou=domains,ou=groups,dc=example,dc=com',
  50. memberfield = 'memberUid',
  51. namefield = 'cn',
  52. { name = 'Support', cn = 'support', admin = false, },
  53. },
  54.  
  55. vcard_format = {
  56. displayname = 'displayName', -- Consult the vCard configuration section in the README
  57. nickname = 'givenName',
  58. photo = { type = 'image/jpeg', binval = 'jpegPhoto', },
  59. },
  60.  
  61. }
  62.  
  63. -- Logging configuration
  64. log = { info = "/var/log/prosody/prosody.log"; error = "/var/log/prosody/prosody.err"; "*syslog"; }
  65.  
  66.  
  67. ----------- Virtual hosts -----------
  68.  
  69. VirtualHost
  70. "example.com"
  71. enabled = true
  72. authentication = "ldap"
  73. debug = true;
  74. anonymous_login = false
  75. 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