blob: 39ede84d490370a52fbbc5a4fc1d5a5d224c1037 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
* Simple Lorea Seed Monitor
Run an nginx static website to show current status of selected seeds.
** How to setup the seed for using the monitor?
*** Using PHP5-FPM (recommended)
This is the recommended solution as it ensures the PHP process is running.
: ping.path = /.ping
: ping.response = pong example.org
*** Using Apache
Classical lorea setup.
: echo 'pong example.org' > /var/www/example.org/.ping
*** Using nginx
New lorea setup.
In =/etc/nginx/sites-available/example.org=:
: location = /.ping {
: default_type text/plain;
: echo "pong $http_host";
: echo_flush;
: }
** How do I add a seed to the monitor?
Edit =/usr/local/bin/lorea_refresh_status= to add the domain name and
the IP address of the server:
: SEED[example.org]="203.0.103.123"
|