Improved main README.

This commit is contained in:
Christian P. MOMON 2024-08-20 23:05:50 +02:00
parent 9662d66254
commit e8a96d1bcb

View file

@ -261,6 +261,28 @@ Example of cron configuration `/etc/cron.d/statoolinfos`:
4 * * * * root /srv/statoolinfos/bin/probe >> /srv/statoolinfos/statoolinfos-cron.log 4 * * * * root /srv/statoolinfos/bin/probe >> /srv/statoolinfos/statoolinfos-cron.log
``` ```
### HTTP Server configuration
The probe feature generates properties files to expose on web. StatoolInfos protocol recommends to follow the well-known convention.
Example of `/etc/apache2/statoolinfos.conf` generic configuration file:
```
Alias "/.well-known/statoolinfos/" "/srv/statoolinfos/well-known/statoolinfos/"
<Directory "/srv/statoolinfos/well-known/statoolinfos">
Options +Indexes
Require all granted
</Directory>
```
Example of include directive in `/etc/apache2/sites-enabled/myservice.conf`:
```
<VirtualHost *:443>
[…]
Include statoolinfos.conf
[…]
</VirtualHost>
```
### Sample configuration file ### Sample configuration file
Create a configuration file `/srv/statoolInfos/conf/foo.bar.org.conf`: Create a configuration file `/srv/statoolInfos/conf/foo.bar.org.conf`: