diff options
author | Matthew Wild <mwild1@gmail.com> | 2008-10-01 22:11:28 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2008-10-01 22:11:28 +0100 |
commit | daf001ededb273ea91bf5d6e3a41ba8cf74a9fd5 (patch) | |
tree | 6664d5fc84d8ec4cc4d55b0222c8ef1fa0e71c26 /main.lua | |
parent | a5d524e2ddfcb8256dcf8f4213e1586858a0d263 (diff) | |
download | prosody-daf001ededb273ea91bf5d6e3a41ba8cf74a9fd5.tar.gz prosody-daf001ededb273ea91bf5d6e3a41ba8cf74a9fd5.zip |
Moved hosts to a config file, still need better config though
Diffstat (limited to 'main.lua')
-rw-r--r-- | main.lua | 22 |
1 files changed, 5 insertions, 17 deletions
@@ -8,6 +8,10 @@ require "lxp" function log(type, area, message) print(type, area, message); end + +dofile "lxmppd.cfg" + +sessions = {}; require "core.stanza_dispatch" require "core.xmlhandlers" @@ -30,25 +34,9 @@ local st = stanza; local init_xmlhandlers = xmlhandlers.init_xmlhandlers; ------------------------------ -sessions = {}; -hosts = { - ["localhost"] = { - type = "local"; - connected = true; - sessions = {}; - }; - ["getjabber.ath.cx"] = { - type = "local"; - connected = true; - sessions = {}; - }; - } -local hosts, users = hosts, users; - -local ssl_ctx = { mode = "server", protocol = "sslv23", key = "/home/matthew/ssl_cert/server.key", - certificate = "/home/matthew/ssl_cert/server.crt", capath = "/etc/ssl/certs", verify = "none", } +local hosts, users = hosts, users; function connect_host(host) hosts[host] = { type = "remote", sendbuffer = {} }; |