Update app.sh
Use nginx for web interface
This commit is contained in:
@@ -13,9 +13,24 @@ cat > /tmp/munin-web/index.html <<EOF
|
||||
</html>
|
||||
EOF
|
||||
|
||||
cat > /tmp/nginx.conf <<EOF
|
||||
events {}
|
||||
|
||||
http {
|
||||
server {
|
||||
listen 80;
|
||||
root /tmp/munin-web;
|
||||
|
||||
location / {
|
||||
index index.html;
|
||||
}
|
||||
}
|
||||
}
|
||||
EOF
|
||||
|
||||
echo "Starting web interface..."
|
||||
|
||||
busybox httpd -f -p 80 -h /tmp/munin-web &
|
||||
nginx -g "daemon off;" -c /tmp/nginx.conf &
|
||||
|
||||
while true
|
||||
do
|
||||
|
||||
Reference in New Issue
Block a user