Externalize hardcoded host inventory and diagram topology into JSON config files (hosts.json, diagram.json) loaded at runtime. Add .env for configurable port, SSH key path, and refresh interval. Include example configs and README for standalone deployment. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
9 lines
352 B
Bash
9 lines
352 B
Bash
#!/bin/bash
|
|
# Copy the mounted SSH key so the dashboard user can read it
|
|
if [ -f /app/ssh/id_ed25519 ]; then
|
|
cp /app/ssh/id_ed25519 /tmp/id_ed25519
|
|
chown dashboard:dashboard /tmp/id_ed25519
|
|
chmod 600 /tmp/id_ed25519
|
|
export SSH_KEY_PATH=/tmp/id_ed25519
|
|
fi
|
|
exec gosu dashboard gunicorn --bind 0.0.0.0:5000 --workers 2 --threads 4 app:app
|