[Unit]
Description=Grade Archive OCR Worker (PaddleOCR GPU)
After=network.target

[Service]
Type=simple
WorkingDirectory=/opt/ocr-worker
Environment=OCR_USE_GPU=true
Environment=OCR_PORT=23567
Environment=OCR_HOST=0.0.0.0
# Environment=OCR_API_KEY=请设置随机密钥
ExecStart=/opt/ocr-worker/.venv/bin/uvicorn app:app --host 0.0.0.0 --port 23567
Restart=on-failure
RestartSec=5

[Install]
WantedBy=multi-user.target
