You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
93 lines
1.9 KiB
93 lines
1.9 KiB
{
|
|
"database": {
|
|
"mongoDB": {
|
|
"host": "127.0.0.1",
|
|
"port": 10000,
|
|
"database": "aaa",
|
|
"username": "aaa",
|
|
"password": "aaaa",
|
|
"authSource": "aaa",
|
|
"ssl": false,
|
|
"enabled": true
|
|
},
|
|
"postgreSQL": {
|
|
"host": "localhost",
|
|
"port": 5432,
|
|
"database": "alpha-futures",
|
|
"username": "postgres",
|
|
"password": "password",
|
|
"ssl": false,
|
|
"enabled": true
|
|
},
|
|
"redis": {
|
|
"host": "localhost",
|
|
"port": 6379,
|
|
"password": "",
|
|
"db": 0,
|
|
"enabled": true
|
|
},
|
|
"influxDB": {
|
|
"host": "localhost",
|
|
"port": 8086,
|
|
"database": "alpha-futures",
|
|
"username": "",
|
|
"password": "",
|
|
"ssl": false,
|
|
"enabled": true
|
|
}
|
|
},
|
|
"server": {
|
|
"port": 3007,
|
|
"host": "0.0.0.0",
|
|
"environment": "development",
|
|
"debug": true,
|
|
"timeout": 30000,
|
|
"maxBodySize": "10mb"
|
|
},
|
|
"security": {
|
|
"jwtSecret": "your-secret-key",
|
|
"jwtExpiresIn": "7d",
|
|
"rateLimit": {
|
|
"windowMs": 60000,
|
|
"max": 120
|
|
},
|
|
"cors": {
|
|
"origin": "*",
|
|
"methods": "GET, POST, PUT, DELETE, OPTIONS",
|
|
"allowedHeaders": "Content-Type, Authorization"
|
|
}
|
|
},
|
|
"dataSource": {
|
|
"test": {
|
|
"enabled": false,
|
|
"timeout": 10000,
|
|
"retries": 3,
|
|
"refreshInterval": 60000
|
|
},
|
|
"tqsdk": {
|
|
"enabled": true,
|
|
"username": "windsdreamer",
|
|
"password": "1qazse42W3",
|
|
"pythonPort": 8001,
|
|
"timeout": 10000,
|
|
"retries": 10,
|
|
"maxConnections": 20
|
|
},
|
|
"wind": {
|
|
"enabled": false,
|
|
"apiKey": "",
|
|
"apiSecret": "",
|
|
"url": "https://api.wind.com.cn",
|
|
"timeout": 30000,
|
|
"retries": 3
|
|
},
|
|
"sina": {
|
|
"enabled": false,
|
|
"url": "https://finance.sina.com.cn",
|
|
"timeout": 10000,
|
|
"retries": 3,
|
|
"refreshInterval": 60000
|
|
},
|
|
"defaultDataSource": "tqsdk"
|
|
}
|
|
} |