Verified Commit 3ed6c7e0 authored by Elias Ojala's avatar Elias Ojala
Browse files

Quiet pull

parent 105f82ea
......@@ -49,7 +49,7 @@ defaults
```
# HTTP (port 80)
frontend http-in
bind *:80
bind :::80 v4v6
reqadd X-Forwarded-Proto:\ http
use_backend letsencrypt if { path_beg -i /.well-known/acme-challenge }
......@@ -87,7 +87,7 @@ To generate certificates, see [this guide](certbot.md#http-used-by-haproxy-examp
```
0 12 */3 * * /root/haproxy-scripts/le-combiner/le-combiner.sh
30 12 */3 * * cd /root/haproxy-scripts/ && git pull
30 12 */3 * * cd /root/haproxy-scripts/ && git pull --quiet
```
......@@ -109,7 +109,7 @@ git clone https://git.lelux.fi/theel0ja/useragent-blocklist /etc/haproxy/userage
```haproxy
# HTTPS (port 443)
frontend https-in
bind *:443 ssl crt /etc/haproxy/certs/ alpn h2,http/1.1
bind :::443 v4v6 ssl crt /etc/haproxy/certs/ alpn h2,http/1.1
reqadd X-Forwarded-Proto:\ https
http-response set-header Strict-Transport-Security max-age=15768000
......@@ -144,7 +144,7 @@ curl https://YOUR_SERVER/robots.txt --header "User-Agent: YisouSpider" -I
### Cronjob (with user that has permissions to `/etc/haproxy/useragent-blocklist/`)
```
0 */3 * * * cd /etc/haproxy/useragent-blocklist && git pull
0 */3 * * * cd /etc/haproxy/useragent-blocklist && git pull --quiet
```
## Nginx backends
......
gitea-robots.txt @ 28c000a0
Subproject commit 2c881fa8028cd02a4b975435680399341857010d
Subproject commit 28c000a03e12fce72e0eb23c8ec1dfe28e31085e
......@@ -31,7 +31,7 @@ User-agent blocked
### Cronjob
```
30 */3 * * * cd /etc/nginx/snippets/useragent-blocklist && git pull
30 */3 * * * cd /etc/nginx/snippets/useragent-blocklist && git pull --quiet
```
## Generating `.htpasswd`
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment