fix(hamc): hermyhq port 4023→4024, add hermyhq-render worker unit
Deploy Infra Config / deploy-infra (push) Canceled after 0s
Deploy Infra Config / deploy-infra (push) Canceled after 0s
- hermyhq.service: PORT 4024 (4023 occupied by pr-agent-bun) - Caddyfile.prod: hamc.* proxy → 4024 - hermyhq-render.service: new systemd unit for shorts render worker (Remotion + edge-tts, runs /opt/hermyhq-renderer)
This commit is contained in:
@@ -177,7 +177,7 @@ mcp.asepharyana.my.id {
|
|||||||
}
|
}
|
||||||
hamc.asepharyana.my.id {
|
hamc.asepharyana.my.id {
|
||||||
import proxy 4024
|
import proxy 4024
|
||||||
}
|
}
|
||||||
|
|
||||||
dev.asepharyana.my.id {
|
dev.asepharyana.my.id {
|
||||||
import proxy 3000
|
import proxy 3000
|
||||||
|
|||||||
@@ -0,0 +1,22 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Hermy HQ — Shorts render worker (Remotion + TTS)
|
||||||
|
After=network.target postgresql.service hermyhq.service
|
||||||
|
Wants=hermyhq.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
User=code
|
||||||
|
Group=code
|
||||||
|
WorkingDirectory=/opt/hermyhq-renderer
|
||||||
|
EnvironmentFile=/etc/hermyhq/hermyhq.env
|
||||||
|
Environment=RENDER_DIR=/data/renders
|
||||||
|
Environment=RENDER_SCRATCH=/tmp/hamc-render
|
||||||
|
Environment=REMOTION_ROOT=/opt/hermyhq-renderer/src/remotion
|
||||||
|
Environment=CHROME_BIN=/usr/bin/google-chrome-stable
|
||||||
|
Environment=EDGE_TTS_BIN=/home/code/.hermes/hermes-agent/venv/bin/edge-tts
|
||||||
|
ExecStart=/usr/bin/node /opt/hermyhq-renderer/scripts/render-worker.mjs
|
||||||
|
Restart=on-failure
|
||||||
|
RestartSec=10
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
@@ -8,7 +8,7 @@ User=code
|
|||||||
Group=code
|
Group=code
|
||||||
Environment=NODE_ENV=production
|
Environment=NODE_ENV=production
|
||||||
Environment=HOSTNAME=127.0.0.1
|
Environment=HOSTNAME=127.0.0.1
|
||||||
Environment=PORT=4023
|
Environment=PORT=4024
|
||||||
EnvironmentFile=/etc/hermyhq/hermyhq.env
|
EnvironmentFile=/etc/hermyhq/hermyhq.env
|
||||||
ExecStart=/nix/var/nix/profiles/hermyhq/bin/hermyhq
|
ExecStart=/nix/var/nix/profiles/hermyhq/bin/hermyhq
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|||||||
Reference in New Issue
Block a user