-
Notifications
You must be signed in to change notification settings - Fork 4
Web UI
Vasily Korytov edited this page Sep 27, 2016
·
48 revisions
We provide a very simplistic Web UI for jsonmon. It just displays the checks and their statuses. It auto-reloads the server response once in 5 seconds. That is: no need to manually refresh the page.
From jsonmon v3.1 the Web UI is bundled with the program, i.e. works out of the box.
Nevertheless, you may want to install the Web UI behind nginx. Reasons:
- nginx supports SSL, authorization and gzip compression
- you may want to deploy a modified copy of the Web UI
server {
listen 80;
gzip on;
gzip_types application/javascript application/json text/css text/plain;
gzip_proxied any;
gzip_min_length 150;
location / {
proxy_pass http://127.0.0.1:3000;
}
}
You may want to use authorization, SSL, virtual host name or some other tweaking.
server {
listen 80;
gzip on;
gzip_types application/javascript application/json
text/css text/plain image/x-icon;
gzip_proxied any;
gzip_min_length 150;
location / {
root /var/www/jsonmon;
try_files $uri $uri/index.html @api;
add_header X-Content-Type-Options "nosniff" always;
}
location @api {
proxy_pass http://127.0.0.1:3000;
}
}