@@ -171,7 +171,10 @@ frontend public
171
171
{{- if (eq .StatsPort -1) }}
172
172
monitor-uri /_______internal_router_healthz
173
173
{{- end }}
174
-
174
+
175
+ # Strip off Proxy headers to prevent HTTpoxy (https://httpoxy.org/)
176
+ http-request del-header Proxy
177
+
175
178
# DNS labels are case insensitive (RFC 4343), we need to convert the hostname into lowercase
176
179
# before matching, or any requests containing uppercase characters will never match.
177
180
http-request set-header Host %[req.hdr(Host),lower]
@@ -235,6 +238,9 @@ frontend fe_sni
235
238
{{- ""}} crt-list /var/lib/haproxy/conf/cert_config.map accept-proxy
236
239
mode http
237
240
241
+ # Strip off Proxy headers to prevent HTTpoxy (https://httpoxy.org/)
242
+ http-request del-header Proxy
243
+
238
244
# DNS labels are case insensitive (RFC 4343), we need to convert the hostname into lowercase
239
245
# before matching, or any requests containing uppercase characters will never match.
240
246
http-request set-header Host %[req.hdr(Host),lower]
@@ -273,6 +279,9 @@ frontend fe_no_sni
273
279
bind 127.0.0.1:{{env "ROUTER_SERVICE_NO_SNI_PORT" "10443"}} ssl no-sslv3 {{ if gt (len .DefaultCertificate) 0 }}crt {{.DefaultCertificate}}{{ else }}crt /var/lib/haproxy/conf/default_pub_keys.pem{{ end }} accept-proxy
274
280
mode http
275
281
282
+ # Strip off Proxy headers to prevent HTTpoxy (https://httpoxy.org/)
283
+ http-request del-header Proxy
284
+
276
285
# DNS labels are case insensitive (RFC 4343), we need to convert the hostname into lowercase
277
286
# before matching, or any requests containing uppercase characters will never match.
278
287
http-request set-header Host %[req.hdr(Host),lower]
0 commit comments