-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.sample.conf
More file actions
109 lines (109 loc) · 3.07 KB
/
config.sample.conf
File metadata and controls
109 lines (109 loc) · 3.07 KB
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
db {
type : "mysql"
user : "root"
password : "root"
host : "127.0.0.1:3306"
database : "nging"
prefix : ""
debug : true
}
sys {
sslHosts : []
sslCertFile : ""
sslKeyFile : ""
editableFileExtensions : { #允许在线编辑的文件扩展名(不含点号,key为扩展名,value为文件描述)
html : "html"
htm : "html"
js : "javascript"
go : "golang"
asp : "asp"
php : "php"
jsp : "jsp"
cs : "csharp"
java : "java"
css : "css"
txt : "txt"
xml : "xml"
md : "markdown"
markdown : "markdown"
ini : "ini"
bat : "bat"
sh : "sh"
pl : "pl"
sql : "sql"
yaml : "yaml"
yml : "yaml"
log : "log"
json : "json"
toml : "toml"
conf : "conf"
}
editableFileMaxSize : "1M" #允许在线编辑的最大文件尺寸
errorPages : { #指定错误页面模板
"403" : "error/403"
"404" : "error/404"
"500" : "error/500"
"0" : "error/500" #其它所有错误显示的模板
}
showExpirationTime : 0 #显示过期时间:0为始终显示;大于0为距离剩余到期时间多少秒的时候显示(例如3153600表示有效期只剩1年的时候显示);小于0为不显示
sessionName : "NGINGSID"
sessionEngine : "file" #session存储引擎。可选值有:cookie / file / redis
sessionConfig : {
#-- file config --
"savePath" : ""
#-- redis config --
"maxIdle" : 10
"network" : "tcp"
"address" : "127.0.0.1:6379"
"password" : ""
"db" : 1
}
disableAutoUpgradeDB : false # 升级程序的时候是否禁止自动升级数据库表结构
disableHTTPLog : false # 是否禁止开启web框架的HTTP请求日志(更改后需要重启才生效)
}
cookie {
path : "/"
domain : ""
maxAge : 0
httpOnly : true
hashKey : "123456789012345678901234567890aa" #32位
blockKey : "123456789012345678901234567890cc" #32位
}
language {
Default : "zh-cn"
Fallback : ""
AllList : ["zh-cn","en"]
RulesPath : ["config/i18n/rules"]
MessagesPath : ["config/i18n/messages"]
Reload : true
}
extend {
upgradeDB : {
mySQLOnlineDDL : false
}
systemService : {
maxRetries : 10
retryInterval : 60
options : {}
}
sessionGuard : {
expires : 300 #客户端加密密码的过期时长(单位:秒)
}
oauth2backend : {
on : false #总开关
accounts : [
{
on : true #开关
name : "nging" #标识。如:github,wechat,alipay等,当前仅支持 nging
appID : "" #App ID
secret : "" #Secret Key
extra : {
hostURL : "http://127.0.0.1:28081" #oauth2server 服务网址
title : "" #名称标题。如不填则使用name字段值且首字母转为大写
}
}
]}
dbmanager : {
downloadSOAR : false
}
}