diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..807c1f7 --- /dev/null +++ b/README.md @@ -0,0 +1,48 @@ +# Monitorcito + +A tiny monitor that gives you the status of a handful of systemd services. + +## Configuration + +This project uses environment variables to change configuration. + +* `MONITORCITO_SERVICES`: A comma separated list of services. Required. +* `MONITORCITO_PORT`: A comma separated list of services. Defaults to 1991. + + +Set `NODE_DEBUG=monitorcito` if you want to log any output. Otherwise it will +be silent. + +## How to run + +Set the appropriate environment variables and run `bin/monitorcito`. + +## The Frontend + +Monitorcito includes a public directory, this is a frontend that queries +the service and refreshes every 5 seconds. The service assumes the API +is running in `/api`. + +Here's an example of how to set it up with nginx. + +``` +upstream monitorcito { + server localhost:1991; + keepalive 64; +} + +server { + listen 80; + + root /home/deploy/src/monitorcito/public; + index index.html; + + server_name monitor.unlimited.pizza; + + location /api { + proxy_redirect off; + + proxy_pass http://monitorcito; + } +} +``` |