Update README.md
This commit is contained in:
parent
7d9727ab18
commit
9e8269c035
10
README.md
10
README.md
|
@ -150,5 +150,13 @@ http6, 200, Chalec website, https://www.chalec.org/
|
||||||
|
|
||||||
Programmer un cron dans `/etc/cron.d/tinystatus` :
|
Programmer un cron dans `/etc/cron.d/tinystatus` :
|
||||||
```
|
```
|
||||||
1 * * * * root /srv/tinystatus/tinystatus > /var/www/status.chalec.org/index.html
|
5 * * * * root /srv/tinystatus/tinystatus > /var/www/status.chalec.org/index.html
|
||||||
|
```
|
||||||
|
|
||||||
|
## Personnaliser le UserAgent
|
||||||
|
|
||||||
|
Important de mettre un UserAgent identifiable en tant que bot. Éditer le fichier `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: TinyStatus bot"
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue