import "Java"
import "java:com/loveoverborders/lib/Log4j"
logDir = '/Users/hugo/work/loveoverborders/webserver/logs'
Log4j.initBasicFiles(logDir .. '/info.log', logDir .. '/warn.log', logDir .. '/error.log', '1Mb')
import "com.loveoverborders.lib.Net"
import "com.loveoverborders.lib.Relay"
Net.start()
Relay.start()
Net.startRemote("test.loveoverborders.com", "aaa", "bbb")
import "fschmidt.util.mail.MailHome"
smtp = MailHome.getSmtpServer("example.com","test3@example.com","xxxxxx");
smtp.setPort(587);
MailHome.setDefaultSmtpServer(smtp);
import "web/Web_server"
local homeDir = "/Users/hugo/work/loveoverborders/webserver"
resource_handler = Web_server.add_folder("/logs", homeDir .. "/logs")
resource_handler.setDirectoriesListed(true)
Web_server.zip()
Web_server.serve("java:com/loveoverborders/web")
Web_server.private_password = "123"