- app.py: 删除全部 MAX_FILE_BYTES(≤1MB→1006) 与 MIN_SHORT_SIDE/MIN_LONG_SIDE (分辨率→1002) 校验及对应常量; 同步清理 File 描述、图片要求说明、 错误码表(移除1002/1006)与过时示例 - gateway/app.py: 删除注释掉的 1006 大小校验块与描述里的 ≤1MB - run_worker.sh / hair-worker.service: 删除临时放开限制的环境变量 - tests: 移除已过时的 test_oversize_1006 / test_lowres_1002 及 oversize_file fixture Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
17 lines
430 B
Desktop File
17 lines
430 B
Desktop File
[Unit]
|
|
Description=Hair Worker (GPU) - 四庭七眼测量 接口1
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=xsl
|
|
WorkingDirectory=/home/xsl/hair
|
|
# 鉴权密码:优先 worker_config.json;也可在此用环境变量覆盖
|
|
# Environment=WORKER_ACCEPT_PASSWORDS=your-strong-secret
|
|
ExecStart=/home/xsl/hair/venv/bin/uvicorn app:app --host 0.0.0.0 --port 8187
|
|
Restart=always
|
|
RestartSec=3
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|