feat: add worker install and deploy
Все проверки выполнены успешно
CI / test (push) Successful in 2m24s
Docker / Build and publish worker image (push) Successful in 13m24s

Этот коммит содержится в:
Gleb Tv
2026-07-19 13:21:11 +03:00
родитель 579a14b403
Коммит 3256dcdc12
16 изменённых файлов: 870 добавлений и 80 удалений

Просмотреть файл

@@ -1,28 +1,13 @@
[Unit]
Description=RSMon distributed monitoring worker
Documentation=https://rocketgit.ru/rsmon/worker
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=rsmon-worker
Group=rsmon-worker
Environment=HOME=/var/lib/rsmon-worker
Environment=RSMON_WEBAPP_DATA_DIR=/var/lib/rsmon-worker/webapp
User=root
EnvironmentFile=/etc/rsmon-worker/worker.env
WorkingDirectory=/var/lib/rsmon-worker
ExecStart=/usr/local/bin/rsmon-worker
Restart=always
RestartSec=5s
TimeoutStopSec=20s
AmbientCapabilities=CAP_NET_RAW
CapabilityBoundingSet=CAP_NET_RAW
NoNewPrivileges=true
PrivateTmp=true
ProtectHome=true
ProtectSystem=full
ReadWritePaths=/var/lib/rsmon-worker
Restart=on-failure
[Install]
WantedBy=multi-user.target