Advertisement
Guest User

Untitled

a guest
Feb 8th, 2017
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.41 KB | None | 0 0
  1. ejabberdctl privacy_set userA localhost "<iq from='userA@localhost/l' type='set' id='block1'> <block xmlns='urn:xmpp:blocking'> <item jid='userB@montague.net'/> </block> </iq>"
  2.  
  3. ejabberdctl privacy_set userA localhost "<iq from='userA@localhost/l' type='set' id='iq1'> <query xmlns='jabber:iq:privacy'> <list name='iq-jid-example'> <item type='jid' value='userB@localhost' action='deny' order='29'> <iq/> </item> </list> </query> </iq>"
  4.  
  5. loglevel: 5
  6. log_rotate_size: 10485760
  7. log_rotate_date: ""
  8. log_rotate_count: 1
  9. log_rate_limit: 100
  10.  
  11. watchdog_admins:
  12. - "admin@localhost"
  13.  
  14. acl:
  15. admin:
  16. user:
  17. - "admin": "localhost"
  18.  
  19. access:
  20. configure:
  21. admin: allow
  22. webadmin_view:
  23. viewers: allow
  24.  
  25. hosts:
  26. - "localhost"
  27.  
  28. listen:
  29. -
  30. port: 5222
  31. module: ejabberd_c2s
  32. max_stanza_size: 65536
  33. shaper: c2s_shaper
  34. access: c2s
  35. -
  36. port: 5281
  37. module: ejabberd_http
  38. request_handlers:
  39. ## "/oauth": ejabberd_oauth
  40. "/api": mod_http_api
  41. web_admin: true
  42. http_bind: true
  43. http_poll: true
  44. captcha: false
  45.  
  46. commands_admin_access:
  47. - allow:
  48. - user: "admin@localhost"
  49.  
  50. commands:
  51. - add_commands: [send_stanza, destroy_room, connected_users_info, get_room_options, user, admin, open, status, stats, connecteo_users, get_vcard, change_password, check_account, register, create_room, create_room_with_opts, send_direct_invitation]
  52. oauth_access: all
  53.  
  54. modules:
  55. mod_vcard: {}
  56. mod_ping: {}
  57. mod_admin_extra: {}
  58. mod_mam: {}
  59. mod_roster: {}
  60. mod_shared_roster: {}
  61. mod_stats: {}
  62. mod_offline: {}
  63. mod_privacy:
  64. db_type: sql
  65. mod_blocking: {}
  66.  
  67. api_permissions:
  68. "console commands":
  69. from:
  70. - ejabberd_ctl
  71. who: all
  72. what: "*"
  73. "admin access":
  74. who:
  75. - admin
  76. - oauth:
  77. - scope: "ejabberd:admin"
  78. - admin
  79. what:
  80. - "*"
  81. - "!stop"
  82. - "!start"
  83.  
  84. shaper_rules:
  85. max_user_sessions: 10
  86. max_user_offline_messages:
  87. - 5000: admin
  88. - 100
  89. c2s_shaper:
  90. - none: admin
  91. - normal
  92. s2s_shaper: fast
  93.  
  94. access_rules:
  95. local:
  96. - allow: local
  97. c2s:
  98. - deny: blocked
  99. - allow
  100. announce:
  101. - allow: admin
  102. configure:
  103. - allow: all
  104. register:
  105. - allow
  106. trusted_network:
  107. - allow: loopback
  108.  
  109. auth_password_format: scram
  110. auth_method: sql
  111. default_db: sql
  112. sql_type: mysql
  113. sql_server: "localhost"
  114. sql_database: "ejabberd"
  115. sql_username: "ejabberd"
  116. sql_password: "123456"
  117. ## If you want to specify the port:
  118. sql_port: 3306
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement