Update README.md
This commit is contained in:
parent
9e8269c035
commit
60ed58026e
24
README.md
24
README.md
|
@ -141,21 +141,33 @@ cd /srv/
|
||||||
git clone https://github.com/bderenzo/tinystatus.git
|
git clone https://github.com/bderenzo/tinystatus.git
|
||||||
```
|
```
|
||||||
|
|
||||||
Paramétrer les éléments à surveiller, en éditant le fichier `checks.csv` :
|
Préparer l'espace de configuration :
|
||||||
```
|
```
|
||||||
http, 200, Chalec website, https://www.chalec.org/
|
mkdir /etc/tinystatus/
|
||||||
http4, 200, Chalec website, https://www.chalec.org/
|
cd /srv/tinystatus/
|
||||||
http6, 200, Chalec website, https://www.chalec.org/
|
cp *csv /etc/tinystatus/
|
||||||
|
```
|
||||||
|
|
||||||
|
Paramétrer les éléments à surveiller, en éditant le fichier `/etc/tinystatus/checks.csv` :
|
||||||
|
```
|
||||||
|
http, 200, Site web Chalec, https://www.chalec.org/
|
||||||
|
http, 200, Service Audio, https://audio.chalec.org/
|
||||||
|
http, 200, Service Ctrlv, https://ctrlv.chalec.org/
|
||||||
|
http, 200, Service Forge, https://forge.chalec.org/
|
||||||
|
http, 200, Service Libreverse, https://libreverse.chalec.org/
|
||||||
|
http, 200, Service Pad, https://pad.chalec.org/
|
||||||
|
http, 200, Service XMPP, https://xmpp.chalec.org/
|
||||||
|
http, 200, Service Stats, https://stats.chalec.org/
|
||||||
```
|
```
|
||||||
|
|
||||||
Programmer un cron dans `/etc/cron.d/tinystatus` :
|
Programmer un cron dans `/etc/cron.d/tinystatus` :
|
||||||
```
|
```
|
||||||
5 * * * * root /srv/tinystatus/tinystatus > /var/www/status.chalec.org/index.html
|
*/5 * * * * root /srv/tinystatus/tinystatus /etc/tinystatus/checks.csv /etc/tinystatus/incidents.txt > /var/www/status.chalec.org/index.html
|
||||||
```
|
```
|
||||||
|
|
||||||
## Personnaliser le UserAgent
|
## Personnaliser le UserAgent
|
||||||
|
|
||||||
Important de mettre un UserAgent identifiable en tant que bot. Éditer le fichier `tinystatus` :
|
Important de mettre un UserAgent identifiable en tant que bot. Éditer le fichier `/srv/tinystatus/tinystatus` :
|
||||||
```
|
```
|
||||||
-useragent="User-Agent: Mozilla/5.0 (X11; Linux x86_64; Debian) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36"
|
-useragent="User-Agent: Mozilla/5.0 (X11; Linux x86_64; Debian) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36"
|
||||||
+useragent="User-Agent: TinyStatus bot"
|
+useragent="User-Agent: TinyStatus bot"
|
||||||
|
|
Loading…
Reference in New Issue