-
Notifications
You must be signed in to change notification settings - Fork 36
/
config.moon
70 lines (51 loc) · 1.13 KB
/
config.moon
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
67
68
69
import config from require "lapis.config"
config { "development", "test", "production", "staging" }, ->
app_name "MoonRocks"
track_exceptions true
redis_host "127.0.0.1"
redis_port 6379
log_format "combined"
disable_manifest_cache ""
measure_performance true
tool_version "1.0.0"
pcall -> include require "secret.init"
postgres {
backend: "pgmoon"
user: "postgres"
database: "moonrocks"
}
host "localhost"
systemd {
name: "luarocks"
user: true
}
config { "development", "test" }, ->
num_workers 1
code_cache "off"
daemon "off"
notice_log "stderr"
bucket_name "moonrocks_dev"
config "test", ->
code_cache "on"
disable_manifest_cache "1"
logging false
config { "production", "staging" }, ->
num_workers 2
code_cache "on"
log_format "combined_forwarded"
enable_https true
admin_email "[email protected]"
daemon "on"
notice_log "logs/notice.log"
logging false
bucket_name "moonrocks"
host "luarocks.org"
config "staging", ->
port 8081
num_workers 1
daemon "off"
notice_log "stderr"
config "test", ->
postgres {
database: "moonrocks_test"
}