Switched to original server implementation & included server shim
This commit is contained in:
3
V3.1/build/hub-shim/systemd/jibo-hub-shim.env.example
Normal file
3
V3.1/build/hub-shim/systemd/jibo-hub-shim.env.example
Normal 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
|
||||
21
V3.1/build/hub-shim/systemd/jibo-hub-shim.service
Normal file
21
V3.1/build/hub-shim/systemd/jibo-hub-shim.service
Normal 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
|
||||
Reference in New Issue
Block a user