Skip to content

Instantly share code, notes, and snippets.

@theozaurus
Created March 16, 2010 15:22
Show Gist options
  • Save theozaurus/334087 to your computer and use it in GitHub Desktop.
Save theozaurus/334087 to your computer and use it in GitHub Desktop.
<% if @ejabberd[:auth_method][:ldap] -%>
{mod_vcard_ldap, []},
<% else %>
{mod_vcard, []},
<% end -%>
<% if @ejabberd[:modules].include? "http_bind" -%>
{mod_http_bind,[]},
<% end -%>
<% if @ejabberd[:modules].include? "mod_ctlextra" -%>
{mod_ctlextra, []},
<% end -%>
<% if @ejabberd[:modules].include? "mod_rabbitmq" -%>
{mod_rabbitmq, []},
<% end -%>
<% if @ejabberd[:modules].include? "mod_rest" -%>
{mod_rest, [ {allowed_ips, [ {127,0,0,1} ]} ]},
<% end -%>
<% if @ejabberd[:modules].include? "mod_archive_odbc" -%>
{mod_archive_odbc, [{database_type, "mysql"},
{default_auto_save, true},
{enforce_default_auto_save, true},
{default_expire, infinity},
{enforce_min_expire, 0},
{enforce_max_expire, infinity},
{replication_expire, 31536000},
{session_duration, 1800},
{wipeout_interval, 86400}]},
<% end -%>
{mod_version, []}
]}.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment