diff --git a/gateway/config.example.json b/gateway/config.example.json index 63519c5..04f6024 100644 --- a/gateway/config.example.json +++ b/gateway/config.example.json @@ -16,7 +16,7 @@ "dispatch": { "per_worker_concurrency": 1, "queue_wait_seconds": 30, - "request_timeout_seconds": 60, + "request_timeout_seconds": 600, "retry_on_failure": true, "max_retries": 1 }, diff --git a/gateway/config.py b/gateway/config.py index 3905a51..f9be687 100644 --- a/gateway/config.py +++ b/gateway/config.py @@ -25,7 +25,7 @@ DEFAULTS = { "dispatch": { "per_worker_concurrency": 1, "queue_wait_seconds": 30, - "request_timeout_seconds": 60, + "request_timeout_seconds": 600, "retry_on_failure": True, "max_retries": 1, }, diff --git a/nginx/hair.conf b/nginx/hair.conf index 0caa3ab..c73ad54 100644 --- a/nginx/hair.conf +++ b/nginx/hair.conf @@ -11,7 +11,7 @@ server { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; - proxy_read_timeout 90s; - proxy_send_timeout 90s; + proxy_read_timeout 600s; + proxy_send_timeout 600s; } } diff --git a/static/test_interface2.html b/static/test_interface2.html new file mode 100644 index 0000000..c5b8c32 --- /dev/null +++ b/static/test_interface2.html @@ -0,0 +1,195 @@ + + +
+ + +POST /api/v1/hair/grow | 正面照 + 性别 → 每个方案展示:原图 / 发际线叠加 / 生发效果
+ +POST /api/v1/hair/grow-b | 医生划线图 + 原图 → 最佳发际线 + 生发效果
+ +POST /api/v1/hairline/generate | 上传正面照 + 性别 → N 张发际线叠加图 + 最佳中心点坐标
+ +