Browse Source

初始化

three
jiaoboxiang 2 years ago
parent
commit
7fccfc9024
1 changed files with 66 additions and 0 deletions
  1. +66
    -0
      etc/cfg.yml

+ 66
- 0
etc/cfg.yml View File

@@ -0,0 +1,66 @@
# 当前域名
debug: true
curldebug: true
prd: false
local: true
# 服务器参数
srv_addr: ':5100'
# 缓存
redis_addr: '120.24.28.6:32572'

admin:
url: http://zyos.com
iurl: http://zyos.com
api_aes_key: e{&[^<wpliI$AgKs:>Ft(.~g]1eR-]VO
api_aes_iv: ZV`7<5X]/2brS@sz
host: http://127.0.0.1:5003

official:
url: http://izhyin.com

supply:
url: http://supply-chain-admin:5500

app_comm:
url: http://127.0.0.1:5003

wxapplet_filepath:
url: '/etc/zyos-admin/wx_check_file'

# 连接官网数据库获取db mapping
db:
host: '119.23.182.117:3306'
name: 'zyos_website'
user: 'root'
psw: 'Fnuo123com@'
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'

# 连接RabbitMq
mq:
host: '119.23.182.117'
port: '5672'
user: 'admin'
pwd: '123456'
# 监听RabbitMq队列名
mq_work_queue_name: 'pay_query_work_queue,pay_return_query_work_queue,test_work_queue'
# 测试环境的ip
rabbitMq_addr_test: 'amqp://admin:123456@119.23.182.117:5672/'
# 正式环境的ip
rabbitMq_addr: 'amqp://zhios:ZHIoscnfnuo123@116.62.62.35:5672/'

Loading…
Cancel
Save