- .gitea/workflows/ci.yml: flake8 + dash check, pytest (90% coverage floor), MariaDB integration tests, bandit, pip-audit, gitleaks, actionlint, shellcheck, zizmor, semgrep; main deploys through a signed webhook and waits for /health to report the commit. - deploy/thor_deploy.sh: deploys an exact sha, installs units and nginx site when changed, rolls back unless /health reports the sha with a working database. Sandbox-tested. - deploy/bootstrap.sh: idempotent first install on CT 173. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
27 lines
556 B
Desktop File
27 lines
556 B
Desktop File
[Unit]
|
|
Description=Thor monitor loop (out-of-band host and cluster health)
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=thor
|
|
Group=thor
|
|
WorkingDirectory=/opt/thor/app
|
|
EnvironmentFile=-/opt/thor/revision.env
|
|
ExecStart=/opt/thor/venv/bin/python -m thor.monitor
|
|
Restart=always
|
|
RestartSec=10
|
|
NoNewPrivileges=true
|
|
ProtectSystem=strict
|
|
ProtectHome=true
|
|
PrivateTmp=true
|
|
PrivateDevices=true
|
|
ProtectKernelTunables=true
|
|
ProtectControlGroups=true
|
|
RestrictSUIDSGID=true
|
|
LockPersonality=true
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|