0 */3 * * * cd /etc/haproxy/useragent-blocklist && git pull
0 */3 * * * cd /etc/haproxy/useragent-blocklist && git pull
```
```
## Nginx backends
nginx `1.10.3-1+deb9u2` from [stretch](https://packages.debian.org/stretch/nginx) doesn't seem to work. Please use `1.14.1-1~bpo9+1` from [stretch-backports](https://packages.debian.org/stretch-backports/nginx).
### haproxy.cfg
```
frontend https-in
...
use_backend web1 if { hdr(host) -i www.example.com }
# Backends
...
backend web1
server web1 SERVER_IP:80 send-proxy-v2
```
### `/etc/nginx/sites-available/www.example.com`
```nginx
server{
listen80proxy_protocol;
# listen [::]:80 proxy_protocol;
server_namewww.example.com;
root/var/www/www.example.com;
# Add index.php to the list if you are using PHP
indexindex.html;
location/{
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.