Mercurial Hosting > nabble
comparison conf/Init.luan @ 0:7ecd1a4ef557
add content
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 21 Mar 2019 19:15:52 -0600 |
parents | |
children | abe0694e9849 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:7ecd1a4ef557 |
---|---|
1 java() | |
2 local Luan = require "luan:Luan.luan" | |
3 local error = Luan.error | |
4 local MailHome = require "java:fschmidt.util.mail.MailHome" | |
5 local System = require "java:java.lang.System" | |
6 local Logging = require "luan:logging/Logging.luan" | |
7 local logger = Logging.logger "Init_default" | |
8 | |
9 | |
10 local Init = {} | |
11 | |
12 System.setProperty("mail.smtp.host", "127.0.0.1") | |
13 System.setProperty("mail.mime.base64.ignoreerrors", "true") | |
14 System.setProperty("mail.mime.address.strict", "false") | |
15 System.setProperty("mail.mime.decodetext.strict", "false") | |
16 | |
17 Init.dbUrl = "jdbc:postgresql://localhost:5432/nabble" | |
18 Init.dbUser = "administrator" | |
19 Init.dbPassword = "" | |
20 | |
21 Init.poolSize = 130 | |
22 | |
23 Init.local_dir = "local/" | |
24 | |
25 -- for now | |
26 local smtp = MailHome.getSmtpServer("mail.smtp2go.com","dev@singlesushi.com","FB4dating") | |
27 smtp.setPort(2525) | |
28 MailHome.setDefaultSmtpServer(smtp) | |
29 | |
30 Init.homeContextUrl = "http://me.nabble.com:8081" | |
31 | |
32 Init.deleteInactiveSites = false | |
33 Init.nabbleHost = "me.nabble.com:8080" | |
34 | |
35 | |
36 Init.defaultHost = "me.nabble.com:8080" | |
37 Init.domain = Init.defaultHost | |
38 --Init.mailDomain = Init.defaultHost | |
39 Init.nabbleHost = Init.defaultHost | |
40 | |
41 --[=[ | |
42 local function getPop3Server(addr, pwd) | |
43 local server = MailHome.getPop3Server(popMailServer, addr, pwd) | |
44 server.useSsl() | |
45 return server | |
46 end | |
47 | |
48 local pop3 = {} -- fill in | |
49 | |
50 local pop3Servers = { | |
51 lists = 'mailingListArchivePop3Server' | |
52 fwd = 'fwdPop3Server' | |
53 ml = 'subscriptionsPop3Server' | |
54 sb = 'subscriptionBouncesPop3Server' | |
55 } | |
56 for name, password in pairs(pop3) do | |
57 Init[pop3Servers[name]] = getPop3Server( name.."@"..Init.mailDomain, password ) | |
58 end | |
59 ]=] | |
60 | |
61 --local HashSet = require "java:java.util.HashSet" | |
62 --Init.sysadmins = HashSet.new {} -- list of emails | |
63 | |
64 --Init.monitor_emails = {} -- list of emails | |
65 | |
66 | |
67 -- for serve_nabble.luan | |
68 | |
69 function Init.fix_serve(Serve) | |
70 if Serve.is_www then | |
71 Serve.is_forums = false | |
72 else | |
73 Serve.www_port = 8081 | |
74 Serve.is_www = true | |
75 end | |
76 end | |
77 | |
78 function Init.add_filters(context) | |
79 end | |
80 | |
81 | |
82 return Init |