Bläddra i källkod

update

master
DengBiao 8 månader sedan
förälder
incheckning
587aae6604
1 ändrade filer med 47 tillägg och 0 borttagningar
  1. +47
    -0
      etc/cfg.yml

+ 47
- 0
etc/cfg.yml Visa fil

@@ -0,0 +1,47 @@
# 当前域名
debug: true
curldebug: true
prd: false
local: true
# 服务器参数
srv_addr: ':4001'
# 缓存
redis_addr: '127.0.0.1:6379'
redis_password: ''

# 连接官网数据库获取db mapping
db:
host: '119.23.182.117:3306'
name: 'bakery'
user: 'root'
psw: 'Fnuo123com@'
show_log: true
max_lifetime: 30
max_open_conns: 100
max_idle_conns: 100
path: 'tmp/%s.log'

#db:
# host: '39.108.126.122:3306'
# name: 'bakery'
# user: 'root'
# psw: 'ZhiSheng123.com'
# show_log: true
# max_lifetime: 30
# max_open_conns: 100
# max_idle_conns: 100
# path: 'tmp/%s.log'


# 日志
log:
app_name: 'applet'
level: 'debug' # 普通日志级别 #debug, info, warn, fatal, panic
is_stdout: true
time_format: 'standard' # sec, second, milli, nano, standard, iso
encoding: 'console'
is_file_out: true
file_dir: './tmp/'
file_max_size: 256
file_max_age: 1
file_name: 'debug.log'

Laddar…
Avbryt
Spara