{"type":"rich","version":"1.0","provider_name":"phorkie","provider_url":"https:\/\/p.cweiske.de\/","title":"ejabberd conversion script","author_name":"Christian Weiske","cache_age":86400,"width":900,"height":900,"html":"<!-- embedding all files of https:\/\/p.cweiske.de\/239 -->\n<link rel=\"stylesheet\" href=\"https:\/\/p.cweiske.de\/css\/embed.css\"\/>\n<div class=\"phork\" id=\"239\">\n    <div class=\"phork-file\">\n <div class=\"phork-content\">\n  \n<div class=\"document\">\n\n\n<p>Bug report: <a class=\"reference external\" href=\"https:\/\/github.com\/processone\/ejabberd\/issues\/803\">https:\/\/github.com\/processone\/ejabberd\/issues\/803<\/a><\/p>\n<\/div>\n\n <\/div>\n <div class=\"phork-meta\">\n  <a href=\"https:\/\/p.cweiske.de\/239\/rev-raw\/0a1d4f9f4592f70015b6d2a2ee27cd9ffd1a18e4\/0-README.rst\" style=\"float: right\">view raw source<\/a>\n  <a href=\"https:\/\/p.cweiske.de\/239#0-README.rst\">0-README.rst<\/a>\n <\/div>\n<\/div>\n    <div class=\"phork-file\">\n <div class=\"phork-content\">\n  <div class=\"code\"><pre class=\"txt\">$ ejabberdctl convert_to_yaml \/etc\/ejabberd\/ejabberd.cfg \/tmp\/ejabberd.yml\r\nProblem 'error function_clause' occurred executing the command.\r\nStacktrace: [{p1_yaml,encode_pair,\r\n                      [inet6,4],\r\n                      [{file,&quot;src\/p1_yaml.erl&quot;},{line,135}]},\r\n             {p1_yaml,'-encode\/2-lc$^0\/1-1-',2,\r\n                      [{file,&quot;src\/p1_yaml.erl&quot;},{line,116}]},\r\n             {p1_yaml,'-encode\/2-lc$^0\/1-1-',2,\r\n                      [{file,&quot;src\/p1_yaml.erl&quot;},{line,116}]},\r\n             {p1_yaml,'-encode\/2-lc$^1\/1-0-',2,\r\n                      [{file,&quot;src\/p1_yaml.erl&quot;},{line,118}]},\r\n             {p1_yaml,encode_pair,2,[{file,&quot;src\/p1_yaml.erl&quot;},{line,136}]},\r\n             {p1_yaml,'-encode\/2-lc$^0\/1-1-',2,\r\n                      [{file,&quot;src\/p1_yaml.erl&quot;},{line,116}]},\r\n             {p1_yaml,'-encode\/2-lc$^0\/1-1-',2,\r\n                      [{file,&quot;src\/p1_yaml.erl&quot;},{line,116}]},\r\n             {p1_yaml,encode,1,[{file,&quot;src\/p1_yaml.erl&quot;},{line,108}]}]\r\n<\/pre><\/div>\n\n <\/div>\n <div class=\"phork-meta\">\n  <a href=\"https:\/\/p.cweiske.de\/239\/rev-raw\/0a1d4f9f4592f70015b6d2a2ee27cd9ffd1a18e4\/1-phork0.txt\" style=\"float: right\">view raw source<\/a>\n  <a href=\"https:\/\/p.cweiske.de\/239#1-phork0.txt\">1-phork0.txt<\/a>\n <\/div>\n<\/div>\n    <div class=\"phork-file\">\n <div class=\"phork-content\">\n  <div class=\"code\"><pre class=\"txt\">{acl, admin, {user, &quot;stefan&quot;, &quot;endrullis.de&quot;}}.\r\n{acl, admin, {user, &quot;joerg&quot;, &quot;endrullis.de&quot;}}.\r\n{acl, admin, {user, &quot;cweiske&quot;, &quot;cweiske.de&quot;}}.\r\n{hosts, [&quot;endrullis.de&quot;, &quot;cweiske.de&quot;]}.\r\n{loglevel, 4}.\r\n{listen,\r\n [\r\n  {5222, ejabberd_c2s, [\r\n\t\t\tinet6,\r\n\t\t\t{access, c2s},\r\n\t\t\t{shaper, c2s_shaper},\r\n\t\t\t{max_stanza_size, 65536},\r\n\t\t\tstarttls, {certfile, &quot;\/etc\/ssl\/private\/cweiske.de_all.pem&quot;}\r\n\t\t       ]},\r\n  {5269, ejabberd_s2s_in, [\r\n\t\t\t   inet6,\r\n\t\t\t   {shaper, s2s_shaper},\r\n\t\t\t   {max_stanza_size, 131072}\r\n\t\t\t  ]},\r\n  {5554, ejabberd_service, [\r\n  \t\t\t    {ip, {127, 0, 0, 1}},\r\n  \t\t\t    {access, all},\r\n  \t\t\t    {shaper_rule, fast},\r\n  \t\t\t    {host, &quot;muc.localhost&quot;, [{password, &quot;&quot;}]}\r\n  \t\t\t    ]},\r\n  {5555, ejabberd_service, [\r\n  \t\t\t    {ip, {127, 0, 0, 1}},\r\n  \t\t\t    {access, all},\r\n  \t\t\t    {shaper_rule, fast},\r\n  \t\t\t    {hosts, [&quot;icq.endrullis.de&quot;],\r\n  \t\t\t\t       [{password, &quot;&quot;}]}\r\n  \t\t\t    ]},\r\n  {5280, ejabberd_http, [\r\n\t\t\t http_bind,\r\n\t\t\t http_poll,\r\n\t\t\t web_admin\r\n\t\t\t]}\r\n ]}.\r\n{max_fsm_queue, 1000}.\r\n{s2s_use_starttls, true}.\r\n{s2s_certfile, &quot;\/etc\/ssl\/private\/cweiske.de_all.pem&quot;}.\r\n{auth_method, internal}.\r\n{shaper, normal, {maxrate, 1000}}.\r\n{shaper, fast, {maxrate, 50000}}.\r\n{acl, local, {user_regexp, &quot;&quot;}}.\r\n{access, max_user_sessions, [{10, all}]}.\r\n{access, max_user_offline_messages, [{5000, admin}, {100, all}]}. \r\n{access, local, [{allow, local}]}.\r\n{access, c2s, [{deny, blocked},\r\n\t       {allow, all}]}.\r\n{access, c2s_shaper, [{none, admin},\r\n\t\t      {normal, all}]}.\r\n{access, s2s_shaper, [{fast, all}]}.\r\n{access, announce, [{allow, admin}]}.\r\n{access, configure, [{allow, admin}]}.\r\n{access, muc_admin, [{allow, admin}]}.\r\n{access, muc, [{allow, all}]}.\r\n{access, register, [{allow, all}]}.\r\n{access, pubsub_createnode, [{allow, all}]}.\r\n{language, &quot;en&quot;}.\r\n{modules,\r\n [\r\n  {mod_adhoc,    []},\r\n  {mod_announce, [{access, announce}]}, % requires mod_adhoc\r\n  {mod_caps,     []},\r\n  {mod_configure,[]}, % requires mod_adhoc\r\n  {mod_admin_extra, []},\r\n  {mod_disco,    [{extra_domains, [&quot;conference.endrullis.de&quot;]}]},\r\n  {mod_http_bind, []},\r\n  {mod_irc,      []},\r\n  {mod_last,     []},\r\n  {mod_muc,      [\r\n\t\t  {access, muc},\r\n\t\t  {access_create, muc},\r\n\t\t  {access_persistent, muc},\r\n\t\t  {access_admin, muc_admin},\r\n\t\t  {max_users, 500}\r\n\t\t ]},\r\n  {mod_offline,  [{access_max_user_messages, max_user_offline_messages}]},\r\n  {mod_privacy,  []},\r\n  {mod_private,  []},\r\n  {mod_proxy65,  [\r\n\t\t  {access, local},\r\n\t\t  {shaper, c2s_shaper}\r\n\t\t ]},\r\n  {mod_pubsub,   [ % requires mod_caps\r\n\t\t  {access_createnode, pubsub_createnode},\r\n\t\t  {pep_sendlast_offline, false},\r\n\t\t  {last_item_cache, false},\r\n\t\t  {plugins, [&quot;flat&quot;, &quot;hometree&quot;, &quot;pep&quot;]}  % pep requires mod_caps\r\n\t\t ]},\r\n  {mod_register, [\r\n\t\t  {welcome_message, {&quot;Welcome!&quot;,\r\n\t\t\t\t     &quot;Welcome to a Jabber service powered by Debian. &quot;\r\n\t\t\t\t     &quot;For information about Jabber visit &quot;\r\n\t\t\t\t     &quot;http:\/\/www.jabber.org&quot;}},\r\n\t\t  {access, register}\r\n\t\t ]},\r\n  {mod_roster,   []},\r\n  {mod_stats,    []},\r\n  {mod_time,     []},\r\n  {mod_vcard,    []},\r\n  {mod_version,  []}\r\n ]}.\r\n<\/pre><\/div>\n\n <\/div>\n <div class=\"phork-meta\">\n  <a href=\"https:\/\/p.cweiske.de\/239\/rev-raw\/0a1d4f9f4592f70015b6d2a2ee27cd9ffd1a18e4\/2-ejabberd.cfg.txt\" style=\"float: right\">view raw source<\/a>\n  <a href=\"https:\/\/p.cweiske.de\/239#2-ejabberd.cfg.txt\">2-ejabberd.cfg.txt<\/a>\n <\/div>\n<\/div>\n<\/div>\n"}
