diff --git a/deploy/hermes-webapi.service b/deploy/hermes-webapi.service new file mode 100644 index 0000000..1c1a7af --- /dev/null +++ b/deploy/hermes-webapi.service @@ -0,0 +1,15 @@ +[Unit] +Description=Hermes WebAPI (FastAPI) +After=network.target + +[Service] +Type=simple +WorkingDirectory=/home/hermes/.hermes/hermes-agent +Environment=HERMES_WEBAPI_HOST=0.0.0.0 +Environment=HERMES_CORS_ORIGINS=* +ExecStart=/home/hermes/.hermes/hermes-agent/venv/bin/python -m webapi +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=default.target