25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-20 17:27:00 +01:00
xmpp.chapril.org-ejabberd/test/elixir-config/shared/ejabberd.exs
gabrielgatu 803270fc6b
Support for Elixir configuration file #1208
Contribution for Google Summer of code 2016 by Gabriel Gatu
2016-09-08 11:37:14 +02:00

32 lines
548 B
Elixir

defmodule Ejabberd.ConfigFile do
use Ejabberd.Config
def start do
[loglevel: 4,
language: "en",
hosts: ["localhost"],
shaper: shaper]
end
defp shaper do
[normal: 1000,
fast: 50000,
max_fsm_queue: 1000]
end
listen :ejabberd_c2s do
@opts [
port: 5222,
max_stanza_size: 65536,
shaper: :c2s_shaper,
access: :c2s]
end
module :mod_adhoc do
end
hook :register_user, [host: "localhost"], fn(user, server) ->
info("User registered: #{user} on #{server}")
end
end