add infra

This commit is contained in:
YuraBombitel1
2026-08-12 14:37:31 +03:00
parent 3dbb105bbc
commit 2303515cb7
4 changed files with 102 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
[Unit]
Description=StreamHelp support Telegram bot
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=support-bot
Group=support-bot
WorkingDirectory=/opt/support-bot
ExecStart=/opt/support-bot/.venv/bin/python /opt/support-bot/support_bot.py
Restart=on-failure
RestartSec=5
# Файлы, которые сервису реально нужно трогать за пределами WorkingDirectory.
ReadWritePaths=/var/lib/support-bot
NoNewPrivileges=true
ProtectSystem=strict
ProtectHome=true
PrivateTmp=true
[Install]
WantedBy=multi-user.target