aboutsummaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-03-15 15:01:34 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-03-15 15:01:34 -0300
commit4bd60b4f3f541c7af734ed40043e70c888450691 (patch)
tree443aa6ef394385e4e8be08aeda1aa672a359dd8f /README
downloadelgg-4bd60b4f3f541c7af734ed40043e70c888450691.tar.gz
elgg-4bd60b4f3f541c7af734ed40043e70c888450691.tar.bz2
Squashed 'mod/lorea-status/' content from commit 6189193
git-subtree-dir: mod/lorea-status git-subtree-split: 6189193ac4771080871f6dab74853051f747490c
Diffstat (limited to 'README')
-rw-r--r--README38
1 files changed, 38 insertions, 0 deletions
diff --git a/README b/README
new file mode 100644
index 000000000..39ede84d4
--- /dev/null
+++ b/README
@@ -0,0 +1,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"
+