-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathonprem.lua.example
66 lines (61 loc) · 1.47 KB
/
onprem.lua.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
box.cfg {
background = false,
listen = 3301,
pid_file = "/dewt/tarantool.pid",
memtx_dir = "/dewt/data",
wal_dir = "/dewt/data",
vinyl_dir = "/dewt/data",
work_dir = "/dewt/app",
log = "/dewt/logs/log.txt",
memtx_memory = 512 * 1024 *1024,
checkpoint_interval = 7200,
custom_proc_title = "drakonhub_onprem"
}
my_site = "drakonhub.my-domain.com" -- put your domain here
behind_https = false
insecure_cookie = true
host_for_http_server = "0.0.0.0"
if behind_https then
-- production setup, tarantool runs behind an HTTPS server
insecure_cookie = false
else
-- debug setup, no HTTPS
end
global_cfg = {
db = "tardb",
diatest = "/dewt/diatest",
host = host_for_http_server,
port = 8090,
http_options = {
log_requests = false
},
session_timeout = 10 * 24 * 3600,
static_timeout = 1 * 3600,
file_timeout = 2,
static_dir = "/dewt/static",
emails_dir = "/dewt/emails",
feedback_dir = "/dewt/feedback",
journal_dir = "/dewt/journal",
content_dir = "/dewt/content",
read_dir = "/dewt/read",
password_timeout = 5,
use_capture = false,
max_recent = 20,
max_log = 50000,
tmp = "/dewt/tmp",
debug_mail = true,
feedback_email = "[email protected]",
create_license = "extended",
licensing = true,
https_sender_port = 3400,
google_anal = false,
my_site = "https://" .. my_site,
my_domain = my_site,
my_ip = my_ip,
complete_delay = 2,
on_premises = true,
application = "DrakonHub",
insecure_cookie = insecure_cookie
}
external_creds = require("external_creds")
require("init")