IISHKO: Telegram bot, Mini App and gateway
Initial public release. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
[Unit]
|
||||
Description=Push stack ALERTs to the owner (Telegram)
|
||||
After=network-online.target
|
||||
[Service]
|
||||
Type=oneshot
|
||||
Nice=10
|
||||
ExecStart=/opt/venv/bin/python /opt/grok-gateway/grok-alert-watch.py
|
||||
@@ -0,0 +1,8 @@
|
||||
[Unit]
|
||||
Description=Grok stack alert watch, every 3 min
|
||||
[Timer]
|
||||
OnBootSec=3min
|
||||
OnUnitActiveSec=180
|
||||
Persistent=true
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Grok Telegram Bot
|
||||
After=network-online.target new-api.service
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
WorkingDirectory=/opt/grok-bot
|
||||
ExecStart=/opt/venv/bin/python /opt/grok-bot/iishko_bot.py
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,6 @@
|
||||
[Unit]
|
||||
Description=Grok stack healthcheck (new-api, g2a) — oneshot, запускается таймером
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/python3 /opt/grok-gateway/grok-healthcheck.py
|
||||
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Grok stack healthcheck — каждые 60с
|
||||
|
||||
[Timer]
|
||||
OnBootSec=60
|
||||
OnUnitActiveSec=60
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=TTS adapter for grok gateway
|
||||
After=network.target
|
||||
[Service]
|
||||
WorkingDirectory=/opt/grok-bot
|
||||
ExecStart=/opt/venv/bin/python /opt/grok-bot/media_tts.py
|
||||
Restart=always
|
||||
RestartSec=3
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=your-handle web skin (dark multiai theme)
|
||||
After=network-online.target new-api.service
|
||||
|
||||
[Service]
|
||||
TimeoutStopSec=30
|
||||
ExecStart=/opt/venv/bin/python /opt/grok-web-skin.py
|
||||
Restart=always
|
||||
RestartSec=3
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=iishko internal-ports firewall
|
||||
After=network-pre.target
|
||||
Before=network.target
|
||||
Wants=network-pre.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/local/sbin/iishko-fw.sh
|
||||
RemainAfterExit=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,25 @@
|
||||
[Unit]
|
||||
Description=IISHKO moderation policy (loopback only, no Telegram poller)
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
WorkingDirectory=/opt/grok-bot
|
||||
EnvironmentFile=/etc/iishko/moderation.env
|
||||
ExecStart=/opt/grok-bot/bin/iishko-moderation -addr 127.0.0.1:48003
|
||||
Restart=on-failure
|
||||
RestartSec=3
|
||||
TimeoutStopSec=15
|
||||
NoNewPrivileges=true
|
||||
PrivateTmp=true
|
||||
ProtectSystem=strict
|
||||
ProtectHome=true
|
||||
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
|
||||
CapabilityBoundingSet=
|
||||
MemoryMax=128M
|
||||
TasksMax=32
|
||||
UMask=0077
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=iishko webapp (Mini App backend)
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/opt/venv/bin/python /opt/grok-bot/webapp/server.py
|
||||
WorkingDirectory=/opt/grok-bot/webapp
|
||||
Restart=always
|
||||
RestartSec=3
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user