Update app.sh
Start status API with application
This commit is contained in:
@@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
echo "Munin-bitcoin starting..."
|
echo "Munin-bitcoin starting..."
|
||||||
|
|
||||||
|
echo "Starting status API..."
|
||||||
|
|
||||||
|
node /app/server/status.js &
|
||||||
|
|
||||||
cat > /tmp/nginx.conf <<EOF
|
cat > /tmp/nginx.conf <<EOF
|
||||||
events {}
|
events {}
|
||||||
|
|
||||||
@@ -10,6 +14,10 @@ http {
|
|||||||
listen 80;
|
listen 80;
|
||||||
root /app/web;
|
root /app/web;
|
||||||
|
|
||||||
|
location /api/ {
|
||||||
|
proxy_pass http://127.0.0.1:8080;
|
||||||
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
index index.html;
|
index index.html;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user