Skip to content

Commit

Permalink
Merge pull request #2 from iwannay/dev
Browse files Browse the repository at this point in the history
增加配置文件注释
  • Loading branch information
iwannay authored Jul 25, 2017
2 parents b0f13e6 + 48a9f97 commit 33d19bd
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
8 changes: 8 additions & 0 deletions client/client.ini
Original file line number Diff line number Diff line change
@@ -1,20 +1,28 @@
[base]
; 数据文件保存地址
data_file = ./.data/data.json
debug = true
; 开启后每条日志会自动添加时间、节点
debugScript = true


[server]
; pprof 监听地址
pprof_addr = :20002

[rpc]
; 本机rpc监听地址
listen= :20001
; 推送给server的地址,如果有端口转发可在这里配置
local_addr = localhost:20001
; server 地址
server_addr =localhost:20003

[mail]
; 默认报警邮件接受人
to = [email protected]

[log]
; 日志目录
dir = logs

12 changes: 12 additions & 0 deletions server/server.ini
Original file line number Diff line number Diff line change
@@ -1,18 +1,28 @@
[base]
; 应用名
app_name = jiacrontab
; 登录名
app_user = admin
; 登录密码
app_passwd = 123456
debug = false

[server]
; web监听地址
listen = 0.0.0.0:20000
; 静态文件存放地址
static_dir = static
; 数据文件保存地址
data_file = ./.data/data.json

[jwt]
; token加密
signing_key = eyJhbGciOiJIUzI1
; cookie中保留的token名
token_cookie_name = access_token
; token过期时间
expires = 604800
; 保留token的cookie过期时间
token_cookie_maxage= 604800

[mail]
Expand All @@ -23,7 +33,9 @@ pass = JIA123456
port = 25

[rpc]
; rpc server监听地址
listen = :20003

[script]
; 允许使用的command
allow_commands = php,/usr/local/bin/php,python,node,curl,wget,sh,uname

0 comments on commit 33d19bd

Please sign in to comment.