deploy: systemd-Unit, Install- und Deploy-Skript

This commit is contained in:
Mikei386
2026-08-18 22:52:48 +02:00
parent aefd7be035
commit 70dba6fcb2
3 changed files with 92 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
[Unit]
Description=Mike AI Profile Router (OpenAI-kompatibler Proxy, Port 8081)
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
ExecStart=/usr/bin/python3 /opt/mike-ai/ai-profile-router/ai_profile_router.py
Restart=on-failure
RestartSec=3
Environment=ROUTER_HOST=0.0.0.0
Environment=ROUTER_PORT=8081
Environment=UPSTREAM_URL=http://127.0.0.1:8080
Environment=PROFILE_SCRIPT=/usr/local/bin/llama-profile
Environment=PROFILE_DIR=/etc/systemd/system/mike-ai-llama-ui.service.d
Environment=SWITCH_TIMEOUT=600
Environment=REQUEST_TIMEOUT=600
NoNewPrivileges=true
PrivateTmp=true
[Install]
WantedBy=multi-user.target