-
Notifications
You must be signed in to change notification settings - Fork 0
/
static.go
115 lines (96 loc) · 2.15 KB
/
static.go
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
package conf
import (
// "net/url"
// "os"
)
// CustomConf returns the absolute path of custom configuration file that is used.
var CustomConf string
// Build time and commit information.
//
// ⚠️ WARNING: should only be set by "-ldflags".
var (
BuildTime string
BuildCommit string
)
var (
App struct {
// ⚠️ WARNING: Should only be set by the main package (i.e. "imail.go").
Version string `ini:"-"`
Name string
BrandName string
RunUser string
RunMode string
}
Debug struct {
Port string
}
// log
Log struct {
Format string
RootPath string
}
// Cache settings
Cache struct {
Adapter string
Interval int
Host string
}
// web settings
Web struct {
HttpAddr string `ini:"http_addr"`
HttpPort int `ini:"http_port"`
Domain string
AppDataPath string
AccessControlAllowOrigin string
ExternalURL string `ini:"EXTERNAL_URL"`
Protocol string
CertFile string
KeyFile string
TLSMinVersion string `ini:"TLS_MIN_VERSION"`
UnixSocketPermission string
LocalRootURL string `ini:"LOCAL_ROOT_URL"`
OfflineMode bool
DisableRouterLog bool
EnableGzip bool
LoadAssetsFromDisk bool
LandingURL string `ini:"LANDING_URL"`
}
Mongodb struct {
Addr string
Db string
}
// Session settings
Session struct {
Provider string
ProviderConfig string
CookieName string
CookieSecure bool
GCInterval int64 `ini:"gc_interval"`
MaxLifeTime int64
CSRFCookieName string `ini:"csrf_cookie_name"`
}
// Security settings
Security struct {
InstallLock bool
SecretKey string
LoginRememberDays int
CookieRememberName string
CookieUsername string
CookieSecure bool
EnableLoginStatusCookie bool
LoginStatusCookieName string
}
Image struct {
Addr string
Ping string
PingResponse string
PingStatus bool
}
// Other settings
Other struct {
ShowFooterBranding bool
ShowFooterTemplateLoadTime bool
}
// Global setting
HasRobotsTxt bool
)