-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathconfig.js.example
More file actions
34 lines (30 loc) · 1.05 KB
/
config.js.example
File metadata and controls
34 lines (30 loc) · 1.05 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
'use strict';
exports.info = {
DIR: __dirname,
APP_NAME: 'service_user',
APP_DIR: __dirname + '/app/',
LOG_DIR: __dirname + '/log/',
ENV: "dev",
PORT: 5001,
API_VERSION: 'v1',
PROXY_HOST: 'https://ip:port', // agent服务地址及端口
FIXED: 8, // 小数精度
SERVER_URL: { // 代理服务器接口
ADD_FLOW: '/agent/approvaladd', // 新建审批流
APPLY_TRANSFER: '/agent/wtihdraw', // 申请转账
REGISTRATION: '/agent/registadd', // 根节点申请注册
COINLIST: '/agent/coinlist', // 币种列表
TOKENLIST: '/agent/tokenlist', // 代币列表
TOKEN_DEPOSIT_ADDRESS: '/agent/status', // 代币充值地址
FLOW_STATUS: '/agent/approvaldetail', // flow哈希是否上链
APPROVALED_FLOWS: '/agent/approvallist' // 获取已通过审批的审批流列表
}
};
// 数据库配置
exports.mysql = {
host: 'localhost',
user: 'root',
password: '',
database: 'box',
port: 3306
};