Files
wind_power_cal/backend/config/server_config.json
T
2026-07-17 17:40:56 +08:00

54 lines
1.1 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",
"client_max_memory_body_size": "20M",
"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
}
}