d5d381759e
- 新增计算方案保存与方案二筛选参数 - 支持方案二桨角规则和有效数据导出 - 优化功率曲线绘制和设计功率展示
53 lines
1.0 KiB
JSON
53 lines
1.0 KiB
JSON
{
|
|
"listeners": [
|
|
{
|
|
"address": "127.0.0.1",
|
|
"port": 8080,
|
|
"https": false
|
|
}
|
|
],
|
|
"app": {
|
|
"threads_num": 4,
|
|
"document_root": "./web",
|
|
"upload_path": "uploads",
|
|
"client_max_body_size": "10M",
|
|
"max_connections": 1000,
|
|
"log": {
|
|
"log_path": "",
|
|
"logfile_base_name": "",
|
|
"log_size_limit": 100000000,
|
|
"log_level": "INFO"
|
|
},
|
|
"run_as_daemon": false,
|
|
"relaunch_on_error": false,
|
|
"static_files_cache_time": 5,
|
|
"idle_connection_timeout": 60,
|
|
"enable_server_header": true,
|
|
"keepalive_timeout": 60
|
|
},
|
|
"cors": {
|
|
"enabled": true,
|
|
"allow_origins": [
|
|
"http://localhost:5173",
|
|
"http://localhost:8080",
|
|
"http://127.0.0.1:8080"
|
|
],
|
|
"allow_methods": [
|
|
"GET",
|
|
"POST",
|
|
"PUT",
|
|
"DELETE",
|
|
"OPTIONS"
|
|
],
|
|
"allow_headers": [
|
|
"Content-Type",
|
|
"Authorization"
|
|
],
|
|
"expose_headers": [
|
|
"Content-Length"
|
|
],
|
|
"allow_credentials": true,
|
|
"max_age": 3600
|
|
}
|
|
}
|