Per-host naming, priviledge dropping and connection accepting after first request

This commit is contained in:
caskd 2019-12-27 15:14:04 +01:00
parent 5c98ec0360
commit f127005958
No known key found for this signature in database
GPG Key ID: 79DB21404E300A27
2 changed files with 7 additions and 2 deletions

View File

@ -39,6 +39,8 @@ services:
image: localhost:5000/haproxy-rx
deploy: *gt2 ## HAProxy really dislikes if it's overlapped
logging: *json-log
enironment:
HOSTNAME: "{{.Node.Hostname}}"
volumes:
- 'haproxysock:/haproxy:rw' ## Telegraf monitoring
networks:

View File

@ -2,7 +2,10 @@ global
tune.ssl.default-dh-param 2048
maxconn 2048
maxconnrate 40
stats socket /haproxy/haproxy.sock mode 660 level admin
uid 65534
gid 65533
node "$HOSTNAME"
stats socket /haproxy/haproxy.sock mode 660 level admin show-node
defaults
mode http
@ -32,7 +35,7 @@ resolvers dockerdns
frontend https
mode http
bind *:80
bind *:80 defer-accept
acl is_cf req.hdr_ip(x-forwarded-for) -m found
acl dav url_beg /.well-known/carddav /.well-known/caldav