@@ -22,9 +22,6 @@ frontend startup
2222frontend synapse-http-in
2323 bind *:8008
2424
25- # same as http log, with %Th (handshake time)
26- log-format "%ci:%cp [%tr] %ft %b/%s %Th/%TR/%Tw/%Tc/%Tr/%Ta %ST %B %CC %CS %tsc %ac/%fc/%bc/%sc/%rc %sq/%bq %hr %hs %{ +Q} r"
27-
2825 # if we hit the maxconn on a server, and the queue timeout expires, we want
2926 # to avoid returning 503, since that will cause cloudflare to mark us down.
3027 #
@@ -35,24 +32,12 @@ frontend synapse-http-in
3532 #
3633 errorfile 503 /synapse/429.http
3734
38- capture request header Host len 32
39- capture request header Referer len 200
40- capture request header User-Agent len 200
41-
42- # before we change the 'src', stash it in a session variable
43- http-request set-var(sess.orig_src) src if !{ var(sess.orig_src) -m found }
44-
45- # in case this is not the first request on the connection, restore the
46- # 'src' to the original, in case we fail to parse the x-f-f header.
47- http-request set-src var(sess.orig_src)
48-
49- # Traditionally do this only for traffic from some limited IP addreses
50- # but the incoming router being what it is, means we have no fixed IP here.
51- http-request set-src hdr(x-forwarded-for)
35+ # same as http log, with %Th (handshake time)
36+ log-format "%ci:%cp [%tr] %ft %b/%s %Th/%TR/%Tw/%Tc/%Tr/%Ta %ST %B %CC %CS %tsc %ac/%fc/%bc/%sc/%rc %sq/%bq %hr %hs %{ +Q} r"
5237
53- # We always add a X-Forwarded-For header (clobbering any existing
54- # headers).
55- http-request set-header X-Forwarded-For %[src]
38+ http-request capture hdr(host) len 32
39+ http-request capture req.fhdr(x-forwarded-for) len 64
40+ http-request capture req.fhdr(user-agent) len 200
5641
5742 # Ingresses by definition run on both 80 & 443 and there's no customising of that
5843 # It is up to the ingress controller and any annotations provided to it whether
0 commit comments