Advertisement
Guest User

Untitled

a guest
Dec 19th, 2013
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.66 KB | None | 0 0
  1. -- Example: admins = { "user1@example.com", "user2@example.net" }
  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. -- Logging configuration
  24. log = { info = "/var/log/prosody/prosody.log"; error = "/var/log/prosody/prosody.err"; "*syslog"; }
  25.  
  26. ----------- Virtual hosts -----------
  27.  
  28. VirtualHost "example.com"
  29. enabled = true
  30. debug = true
  31. allow_unencrypted_plain_auth = true
  32. anonymous_login = false
  33. authentication = "ldap2"
  34. -- storage = "ldap" (temporarily commented to figure out tls connection issue)
  35.  
  36. ldap = {
  37.  
  38. hostname = 'auth.example.com:636',
  39. use_tls = true,
  40. bind_dn = 'cn=admin,dc=example,dc=com',
  41. bind_password = 'password',
  42.  
  43. user = {
  44. basedn = 'ou=people,dc=example,dc=com',
  45. filter = '(!(uid=seven))',
  46. usernamefield = 'uid',
  47. namefield = 'cn',
  48. },
  49.  
  50. groups = {
  51. basedn = 'ou=groups,dc=example,dc=com',
  52. memberfield = 'memberUid',
  53. namefield = 'cn',
  54. { name = 'Support', cn = 'support', admin = false, },
  55. },
  56.  
  57. vcard_format = {
  58. displayname = 'displayName', -- Consult the vCard configuration section in the README
  59. nickname = 'givenName',
  60. photo = { type = 'image/jpeg', binval = 'jpegPhoto', },
  61. },
  62.  
  63. }
  64.  
  65. ssl = { key = "/etc/ssl/private/example.com.key"; certificate = "/etc/ssl/certs/example.com.crt"; cafile = "/etc/ssl/certs/example_ca.crt"; }
  66.  
  67. ------ Components ------
  68.  
  69. ---Set up a MUC (multi-user chat) room server on conference.example.com:
  70. --Component "conference.example.com" "muc"
  71.  
  72. -- Set up a SOCKS5 bytestream proxy for server-proxied file transfers:
  73. --Component "proxy.example.com" "proxy65"
  74.  
  75. ---Set up an external component (default component port is 5347)
  76. --
  77. -- External components allow adding various services, such as gateways/
  78. -- transports to other networks like ICQ, MSN and Yahoo. For more info
  79. -- see: http://prosody.im/doc/components#adding_an_external_component
  80. --
  81. --Component "gateway.example.com"
  82. -- component_secret = "password"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement