Files
munin-bitcoin/app.sh
T
Unheard0840 1ed80e44dd Update app.sh
Start status API with application
2026-08-06 18:35:31 +00:00

36 lines
511 B
Bash

#!/bin/sh
echo "Munin-bitcoin starting..."
echo "Starting status API..."
node /app/server/status.js &
cat > /tmp/nginx.conf <<EOF
events {}
http {
server {
listen 80;
root /app/web;
location /api/ {
proxy_pass http://127.0.0.1:8080;
}
location / {
index index.html;
}
}
}
EOF
echo "Starting web interface..."
nginx -g "daemon off;" -c /tmp/nginx.conf &
while true
do
echo "Munin-bitcoin is running"
sleep 300
done