Switched to original server implementation & included server shim

This commit is contained in:
2026-03-20 03:32:49 +02:00
parent 268cee305e
commit 93bd8db6bb
59 changed files with 13392 additions and 16 deletions

View File

@@ -0,0 +1,3 @@
# Config file path passed to the shim.
# Copy to: /etc/jibo-hub-shim/jibo-hub-shim.env
JIBO_HUB_SHIM_CONFIG=/etc/jibo-hub-shim/config.json

View File

@@ -0,0 +1,21 @@
[Unit]
Description=Jibo Hub Shim (v1/listen)
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
WorkingDirectory=/opt/jibo-hub-shim
EnvironmentFile=-/etc/jibo-hub-shim/jibo-hub-shim.env
ExecStart=/usr/bin/env node /opt/jibo-hub-shim/index.js ${JIBO_HUB_SHIM_CONFIG}
Restart=always
RestartSec=2
# Hardening (keep minimal; shim needs network only)
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=full
ProtectHome=true
[Install]
WantedBy=multi-user.target