Merge ~hloeung/content-cache-charm:log into content-cache-charm:master

Proposed by Haw Loeung
Status: Merged
Approved by: Haw Loeung
Approved revision: 9e2a6125b64b7d258563503e8a56d1bc10ba7d73
Merged at revision: ecc5578a0c9e979e1f3e877c3987a2c7627d41bf
Proposed branch: ~hloeung/content-cache-charm:log
Merge into: content-cache-charm:master
Diff against target: 1056 lines (+121/-121)
17 files modified
files/nginx-logging-format.conf (+1/-1)
lib/haproxy.py (+2/-2)
reactive/content_cache.py (+1/-1)
tests/unit/files/config_test_config.txt (+1/-1)
tests/unit/files/config_test_sites_map.txt (+1/-1)
tests/unit/files/content_cache_rendered_haproxy_test_output.txt (+20/-20)
tests/unit/files/content_cache_rendered_haproxy_test_output2.txt (+2/-2)
tests/unit/files/content_cache_rendered_haproxy_test_output3.txt (+2/-2)
tests/unit/files/content_cache_rendered_haproxy_test_output_auto_maxconns.txt (+20/-20)
tests/unit/files/content_cache_rendered_haproxy_test_output_backup.txt (+3/-3)
tests/unit/files/content_cache_rendered_haproxy_test_output_load_balancing_algorithm.txt (+20/-20)
tests/unit/files/content_cache_rendered_haproxy_test_output_processes_and_threads.txt (+20/-20)
tests/unit/files/content_cache_rendered_haproxy_test_output_processes_and_threads_haproxy2.txt (+20/-20)
tests/unit/files/content_cache_rendered_haproxy_test_output_srv_template.txt (+2/-2)
tests/unit/files/haproxy_config_rendered_backends_stanzas_test_output.txt (+2/-2)
tests/unit/files/haproxy_config_rendered_test_output.txt (+2/-2)
tests/unit/files/haproxy_config_rendered_test_output2.txt (+2/-2)
Reviewer Review Type Date Requested Status
Colin Misare Approve
Canonical IS Reviewers Pending
Canonical IS Reviewers Pending
Review via email: mp+397698@code.launchpad.net

This proposal supersedes a proposal from 2021-02-08.

Commit message

Introduce new header X-Cache-Request-IP and log that

This prevents spoofing of X-Forward-For or any additional hops from
being logged.

To post a comment you must log in.
Revision history for this message
Haw Loeung (hloeung) wrote : Posted in a previous version of this proposal

A real fix is to set a new header with the client's IP and update Nginx to log that. I'll do that in another MP.

Revision history for this message
Canonical IS Mergebot (canonical-is-mergebot) wrote : Posted in a previous version of this proposal

This merge proposal is being monitored by mergebot. Change the status to Approved to merge.

Revision history for this message
Canonical IS Mergebot (canonical-is-mergebot) wrote :

This merge proposal is being monitored by mergebot. Change the status to Approved to merge.

Revision history for this message
Colin Misare (cmisare) wrote :

One question inline

Revision history for this message
Haw Loeung (hloeung) :
Revision history for this message
Colin Misare (cmisare) wrote :

LGTM

review: Approve
Revision history for this message
Canonical IS Mergebot (canonical-is-mergebot) wrote :

Change successfully merged at revision ecc5578a0c9e979e1f3e877c3987a2c7627d41bf

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/files/nginx-logging-format.conf b/files/nginx-logging-format.conf
index a646743..b9df464 100644
--- a/files/nginx-logging-format.conf
+++ b/files/nginx-logging-format.conf
@@ -1,4 +1,4 @@
1log_format content_cache '$http_x_forwarded_for - $remote_user [$time_local] '1log_format content_cache '$http_x_cache_request_ip - $remote_user [$time_local] '
2 '"$request" $status $bytes_sent '2 '"$request" $status $bytes_sent '
3 '"$http_referer" "$http_user_agent" $request_time '3 '"$http_referer" "$http_user_agent" $request_time '
4 '$upstream_cache_status $upstream_response_time '4 '$upstream_cache_status $upstream_response_time '
diff --git a/lib/haproxy.py b/lib/haproxy.py
index 2bf795e..597131e 100644
--- a/lib/haproxy.py
+++ b/lib/haproxy.py
@@ -222,8 +222,8 @@ listen {name}
222 def render_stanza_backend(self, config): # NOQA: C901222 def render_stanza_backend(self, config): # NOQA: C901
223 backend_stanza = """223 backend_stanza = """
224backend backend-{name}224backend backend-{name}
225{options}{indent}{httpchk}225{indent}{httpchk}
226{indent}http-request set-header Host {site_name}226{options}{indent}http-request set-header Host {site_name}
227{indent}balance {load_balancing_algorithm}227{indent}balance {load_balancing_algorithm}
228{backends}228{backends}
229"""229"""
diff --git a/reactive/content_cache.py b/reactive/content_cache.py
index ec681d6..9f95727 100644
--- a/reactive/content_cache.py
+++ b/reactive/content_cache.py
@@ -281,7 +281,7 @@ def configure_haproxy(): # NOQA: C901 LP#1825084
281 # Also, for caching layer, we want higher fall count as it's less281 # Also, for caching layer, we want higher fall count as it's less
282 # likely the caching layer is down, 2 mins here (inter * fall).282 # likely the caching layer is down, 2 mins here (inter * fall).
283 new_cached_loc_conf['backend-fall-count'] = 60283 new_cached_loc_conf['backend-fall-count'] = 60
284 new_cached_loc_conf['backend-options'] = ['forwardfor']284 new_cached_loc_conf['backend-options'] = ['http-request set-header X-Cache-Request-IP %[src]']
285285
286 # No backends286 # No backends
287 if not site_conf['locations'][location].get('backends'):287 if not site_conf['locations'][location].get('backends'):
diff --git a/tests/unit/files/config_test_config.txt b/tests/unit/files/config_test_config.txt
index bae4473..688b8af 100644
--- a/tests/unit/files/config_test_config.txt
+++ b/tests/unit/files/config_test_config.txt
@@ -46,7 +46,7 @@ site3.local:
46 /:46 /:
47 backends: *BACKENDS47 backends: *BACKENDS
48 backend-options:48 backend-options:
49 - forwardfor except 127.0.0.149 - forwardfor except 127.0.0.1 192.168.1.1
50 - forceclose50 - forceclose
51 cache-maxconn: 409651 cache-maxconn: 4096
5252
diff --git a/tests/unit/files/config_test_sites_map.txt b/tests/unit/files/config_test_sites_map.txt
index 7158e24..6f130c7 100644
--- a/tests/unit/files/config_test_sites_map.txt
+++ b/tests/unit/files/config_test_sites_map.txt
@@ -39,7 +39,7 @@ site3.local:
39 locations:39 locations:
40 /:40 /:
41 backend-options:41 backend-options:
42 - forwardfor except 127.0.0.142 - forwardfor except 127.0.0.1 192.168.1.1
43 - forceclose43 - forceclose
44 backend_port: 808244 backend_port: 8082
45 backends:45 backends:
diff --git a/tests/unit/files/content_cache_rendered_haproxy_test_output.txt b/tests/unit/files/content_cache_rendered_haproxy_test_output.txt
index 9f6292d..2e20fd6 100644
--- a/tests/unit/files/content_cache_rendered_haproxy_test_output.txt
+++ b/tests/unit/files/content_cache_rendered_haproxy_test_output.txt
@@ -155,15 +155,15 @@ listen site9-local
155 default_backend backend-site9-local155 default_backend backend-site9-local
156156
157backend backend-cached-site1-local157backend backend-cached-site1-local
158 option forwardfor
159 option httpchk HEAD /?token=1861920000_f3e404e205ed44749e942d481f7a7bec57c5e78a HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk158 option httpchk HEAD /?token=1861920000_f3e404e205ed44749e942d481f7a7bec57c5e78a HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk
159 http-request set-header X-Cache-Request-IP %[src]
160 http-request set-header Host site1.local160 http-request set-header Host site1.local
161 balance leastconn161 balance leastconn
162 server server_1 127.0.0.1:6080 check inter 2s rise 2 fall 60 maxconn 600162 server server_1 127.0.0.1:6080 check inter 2s rise 2 fall 60 maxconn 600
163163
164backend backend-site1-local164backend backend-site1-local
165 option redispatch 1
166 option httpchk HEAD / HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk165 option httpchk HEAD / HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk
166 option redispatch 1
167 http-request set-header Host site1.local167 http-request set-header Host site1.local
168 balance leastconn168 balance leastconn
169 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200169 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
@@ -171,15 +171,15 @@ backend backend-site1-local
171 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 200171 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 200
172172
173backend backend-cached-site2-local173backend backend-cached-site2-local
174 option forwardfor
175 option httpchk GET /check/ HTTP/1.0\r\nHost:\ site2.local\r\nUser-Agent:\ haproxy/httpchk174 option httpchk GET /check/ HTTP/1.0\r\nHost:\ site2.local\r\nUser-Agent:\ haproxy/httpchk
175 http-request set-header X-Cache-Request-IP %[src]
176 http-request set-header Host site2.local176 http-request set-header Host site2.local
177 balance leastconn177 balance leastconn
178 server server_1 127.0.0.1:6081 check inter 2s rise 2 fall 60 maxconn 3072178 server server_1 127.0.0.1:6081 check inter 2s rise 2 fall 60 maxconn 3072
179179
180backend backend-site2-local180backend backend-site2-local
181 option redispatch 1
182 option httpchk GET /check/ HTTP/1.0\r\nHost:\ site2.local\r\nUser-Agent:\ haproxy/httpchk181 option httpchk GET /check/ HTTP/1.0\r\nHost:\ site2.local\r\nUser-Agent:\ haproxy/httpchk
182 option redispatch 1
183 http-request set-header Host site2.local183 http-request set-header Host site2.local
184 balance leastconn184 balance leastconn
185 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt185 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt
@@ -187,17 +187,17 @@ backend backend-site2-local
187 server server_3 127.0.1.12:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt187 server server_3 127.0.1.12:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt
188188
189backend backend-cached-site3-local189backend backend-cached-site3-local
190 option forwardfor
191 option httpchk HEAD / HTTP/1.0\r\nHost:\ site3.local\r\nUser-Agent:\ haproxy/httpchk190 option httpchk HEAD / HTTP/1.0\r\nHost:\ site3.local\r\nUser-Agent:\ haproxy/httpchk
191 http-request set-header X-Cache-Request-IP %[src]
192 http-request set-header Host site3.local192 http-request set-header Host site3.local
193 balance leastconn193 balance leastconn
194 server server_1 127.0.0.1:6082 check inter 2s rise 2 fall 60 maxconn 4096194 server server_1 127.0.0.1:6082 check inter 2s rise 2 fall 60 maxconn 4096
195195
196backend backend-site3-local196backend backend-site3-local
197 option forwardfor except 127.0.0.1197 option httpchk HEAD / HTTP/1.0\r\nHost:\ site3.local\r\nUser-Agent:\ haproxy/httpchk
198 option forwardfor except 127.0.0.1 192.168.1.1
198 option forceclose199 option forceclose
199 option redispatch 1200 option redispatch 1
200 option httpchk HEAD / HTTP/1.0\r\nHost:\ site3.local\r\nUser-Agent:\ haproxy/httpchk
201 http-request set-header Host site3.local201 http-request set-header Host site3.local
202 balance leastconn202 balance leastconn
203 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200203 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
@@ -205,92 +205,92 @@ backend backend-site3-local
205 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 200205 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 200
206206
207backend backend-cached-site4-local207backend backend-cached-site4-local
208 option forwardfor
209 option httpchk HEAD / HTTP/1.0\r\nHost:\ site4.local\r\nUser-Agent:\ haproxy/httpchk208 option httpchk HEAD / HTTP/1.0\r\nHost:\ site4.local\r\nUser-Agent:\ haproxy/httpchk
209 http-request set-header X-Cache-Request-IP %[src]
210 http-request set-header Host site4.local210 http-request set-header Host site4.local
211 balance leastconn211 balance leastconn
212 server server_1 127.0.0.1:6083 check inter 2s rise 2 fall 60 maxconn 200212 server server_1 127.0.0.1:6083 check inter 2s rise 2 fall 60 maxconn 200
213213
214backend backend-cached-site5214backend backend-cached-site5
215 option forwardfor
216 option httpchk HEAD / HTTP/1.0\r\nHost:\ site5.local\r\nUser-Agent:\ haproxy/httpchk215 option httpchk HEAD / HTTP/1.0\r\nHost:\ site5.local\r\nUser-Agent:\ haproxy/httpchk
216 http-request set-header X-Cache-Request-IP %[src]
217 http-request set-header Host site5.local217 http-request set-header Host site5.local
218 balance leastconn218 balance leastconn
219 server server_1 127.0.0.1:6084 check inter 2s rise 2 fall 60 maxconn 200219 server server_1 127.0.0.1:6084 check inter 2s rise 2 fall 60 maxconn 200
220220
221backend backend-site5221backend backend-site5
222 option redispatch 1
223 option httpchk HEAD / HTTP/1.0\r\nHost:\ site5.local\r\nUser-Agent:\ haproxy/httpchk222 option httpchk HEAD / HTTP/1.0\r\nHost:\ site5.local\r\nUser-Agent:\ haproxy/httpchk
223 option redispatch 1
224 http-request set-header Host site5.local224 http-request set-header Host site5.local
225 balance leastconn225 balance leastconn
226 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200226 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
227227
228backend backend-site5-2228backend backend-site5-2
229 option redispatch 1
230 option httpchk HEAD / HTTP/1.0\r\nHost:\ site5.local\r\nUser-Agent:\ haproxy/httpchk229 option httpchk HEAD / HTTP/1.0\r\nHost:\ site5.local\r\nUser-Agent:\ haproxy/httpchk
230 option redispatch 1
231 http-request set-header Host site5.local231 http-request set-header Host site5.local
232 balance leastconn232 balance leastconn
233 server server_1 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200233 server server_1 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200
234234
235backend backend-cached-site6-local235backend backend-cached-site6-local
236 option forwardfor
237 option httpchk HEAD / HTTP/1.0\r\nHost:\ site6.local\r\nUser-Agent:\ haproxy/httpchk236 option httpchk HEAD / HTTP/1.0\r\nHost:\ site6.local\r\nUser-Agent:\ haproxy/httpchk
237 http-request set-header X-Cache-Request-IP %[src]
238 http-request set-header Host site6.local238 http-request set-header Host site6.local
239 balance leastconn239 balance leastconn
240 server server_1 127.0.0.1:6085 check inter 2s rise 2 fall 60 maxconn 200240 server server_1 127.0.0.1:6085 check inter 2s rise 2 fall 60 maxconn 200
241241
242backend backend-site6-local242backend backend-site6-local
243 option redispatch 1
244 option httpchk HEAD / HTTP/1.0\r\nHost:\ site6.local\r\nUser-Agent:\ haproxy/httpchk243 option httpchk HEAD / HTTP/1.0\r\nHost:\ site6.local\r\nUser-Agent:\ haproxy/httpchk
244 option redispatch 1
245 http-request set-header Host site6.local245 http-request set-header Host site6.local
246 balance leastconn246 balance leastconn
247 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(site6.local) check-sni site6.local verify required ca-file ca-certificates.crt247 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(site6.local) check-sni site6.local verify required ca-file ca-certificates.crt
248248
249backend backend-cached-site7-local249backend backend-cached-site7-local
250 option forwardfor
251 option httpchk HEAD / HTTP/1.0\r\nHost:\ site7.local\r\nUser-Agent:\ haproxy/httpchk250 option httpchk HEAD / HTTP/1.0\r\nHost:\ site7.local\r\nUser-Agent:\ haproxy/httpchk
251 http-request set-header X-Cache-Request-IP %[src]
252 http-request set-header Host site7.local252 http-request set-header Host site7.local
253 balance leastconn253 balance leastconn
254 server server_1 127.0.0.1:6086 check inter 2s rise 2 fall 60 maxconn 200254 server server_1 127.0.0.1:6086 check inter 2s rise 2 fall 60 maxconn 200
255255
256backend backend-site7-local256backend backend-site7-local
257 option redispatch 1
258 option httpchk HEAD / HTTP/1.0\r\nHost:\ site7.local\r\nUser-Agent:\ haproxy/httpchk257 option httpchk HEAD / HTTP/1.0\r\nHost:\ site7.local\r\nUser-Agent:\ haproxy/httpchk
258 option redispatch 1
259 http-request set-header Host site7.local259 http-request set-header Host site7.local
260 balance leastconn260 balance leastconn
261 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200261 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
262262
263backend backend-cached-site8-local263backend backend-cached-site8-local
264 option forwardfor
265 option httpchk HEAD / HTTP/1.0\r\nHost:\ site8.local\r\nUser-Agent:\ haproxy/httpchk264 option httpchk HEAD / HTTP/1.0\r\nHost:\ site8.local\r\nUser-Agent:\ haproxy/httpchk
265 http-request set-header X-Cache-Request-IP %[src]
266 http-request set-header Host site8.local266 http-request set-header Host site8.local
267 balance leastconn267 balance leastconn
268 server server_1 127.0.0.1:6087 check inter 2s rise 2 fall 60 maxconn 200268 server server_1 127.0.0.1:6087 check inter 2s rise 2 fall 60 maxconn 200
269269
270backend backend-site8-local270backend backend-site8-local
271 option redispatch 1
272 option httpchk HEAD / HTTP/1.0\r\nHost:\ site8.local\r\nUser-Agent:\ haproxy/httpchk271 option httpchk HEAD / HTTP/1.0\r\nHost:\ site8.local\r\nUser-Agent:\ haproxy/httpchk
272 option redispatch 1
273 http-request set-header Host site8.local273 http-request set-header Host site8.local
274 balance leastconn274 balance leastconn
275 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200275 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
276276
277backend backend-site8-local-2277backend backend-site8-local-2
278 option redispatch 1
279 option httpchk HEAD / HTTP/1.0\r\nHost:\ auth.site8.local\r\nUser-Agent:\ haproxy/httpchk278 option httpchk HEAD / HTTP/1.0\r\nHost:\ auth.site8.local\r\nUser-Agent:\ haproxy/httpchk
279 option redispatch 1
280 http-request set-header Host auth.site8.local280 http-request set-header Host auth.site8.local
281 balance leastconn281 balance leastconn
282 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(auth.site8.local) check-sni auth.site8.local verify required ca-file ca-certificates.crt282 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(auth.site8.local) check-sni auth.site8.local verify required ca-file ca-certificates.crt
283283
284backend backend-cached-site9-local284backend backend-cached-site9-local
285 option forwardfor
286 option httpchk HEAD / HTTP/1.0\r\nHost:\ site9.local\r\nUser-Agent:\ haproxy/httpchk285 option httpchk HEAD / HTTP/1.0\r\nHost:\ site9.local\r\nUser-Agent:\ haproxy/httpchk
286 http-request set-header X-Cache-Request-IP %[src]
287 http-request set-header Host site9.local287 http-request set-header Host site9.local
288 balance leastconn288 balance leastconn
289 server server_1 127.0.0.1:6088 check inter 2s rise 2 fall 60 maxconn 200289 server server_1 127.0.0.1:6088 check inter 2s rise 2 fall 60 maxconn 200
290290
291backend backend-site9-local291backend backend-site9-local
292 option redispatch 1
293 option httpchk HEAD / HTTP/1.0\r\nHost:\ site9.local\r\nUser-Agent:\ haproxy/httpchk292 option httpchk HEAD / HTTP/1.0\r\nHost:\ site9.local\r\nUser-Agent:\ haproxy/httpchk
293 option redispatch 1
294 http-request set-header Host site9.local294 http-request set-header Host site9.local
295 balance leastconn295 balance leastconn
296 server server_1 127.0.1.15:80 check inter 1m rise 2 fall 5 maxconn 200296 server server_1 127.0.1.15:80 check inter 1m rise 2 fall 5 maxconn 200
diff --git a/tests/unit/files/content_cache_rendered_haproxy_test_output2.txt b/tests/unit/files/content_cache_rendered_haproxy_test_output2.txt
index 22ddfcd..5f6824b 100644
--- a/tests/unit/files/content_cache_rendered_haproxy_test_output2.txt
+++ b/tests/unit/files/content_cache_rendered_haproxy_test_output2.txt
@@ -90,16 +90,16 @@ listen site1-local
90 default_backend backend-site1-local90 default_backend backend-site1-local
9191
92backend backend-cached-site1-local92backend backend-cached-site1-local
93 option forwardfor
94 option httpchk HEAD / HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk93 option httpchk HEAD / HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk
94 http-request set-header X-Cache-Request-IP %[src]
95 http-request set-header Host site1.local95 http-request set-header Host site1.local
96 balance leastconn96 balance leastconn
97 server server_1 127.0.0.1:6080 check inter 2s rise 2 fall 60 maxconn 20097 server server_1 127.0.0.1:6080 check inter 2s rise 2 fall 60 maxconn 200
9898
99backend backend-site1-local99backend backend-site1-local
100 option httpchk HEAD / HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk
100 retries 3101 retries 3
101 option redispatch 1102 option redispatch 1
102 option httpchk HEAD / HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk
103 http-request set-header Host site1.local103 http-request set-header Host site1.local
104 balance leastconn104 balance leastconn
105 server server_1 192.168.1.1:8080 check inter 5s rise 2 fall 5 maxconn 200105 server server_1 192.168.1.1:8080 check inter 5s rise 2 fall 5 maxconn 200
diff --git a/tests/unit/files/content_cache_rendered_haproxy_test_output3.txt b/tests/unit/files/content_cache_rendered_haproxy_test_output3.txt
index dd8a6f7..83641cc 100644
--- a/tests/unit/files/content_cache_rendered_haproxy_test_output3.txt
+++ b/tests/unit/files/content_cache_rendered_haproxy_test_output3.txt
@@ -96,15 +96,15 @@ listen site1-local
96 default_backend backend-site1-local96 default_backend backend-site1-local
9797
98backend backend-cached-site1-local98backend backend-cached-site1-local
99 option forwardfor
100 option httpchk HEAD / HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk99 option httpchk HEAD / HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk
100 http-request set-header X-Cache-Request-IP %[src]
101 http-request set-header Host site1.local101 http-request set-header Host site1.local
102 balance leastconn102 balance leastconn
103 server server_1 127.0.0.1:6080 check inter 2s rise 2 fall 60 maxconn 200103 server server_1 127.0.0.1:6080 check inter 2s rise 2 fall 60 maxconn 200
104104
105backend backend-site1-local105backend backend-site1-local
106 option redispatch 1
107 option httpchk HEAD / HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk106 option httpchk HEAD / HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk
107 option redispatch 1
108 http-request set-header Host site1.local108 http-request set-header Host site1.local
109 balance leastconn109 balance leastconn
110 server server_1 192.168.1.1:8080 check inter 5s rise 2 fall 5 maxconn 200110 server server_1 192.168.1.1:8080 check inter 5s rise 2 fall 5 maxconn 200
diff --git a/tests/unit/files/content_cache_rendered_haproxy_test_output_auto_maxconns.txt b/tests/unit/files/content_cache_rendered_haproxy_test_output_auto_maxconns.txt
index 8de817a..e417ae8 100644
--- a/tests/unit/files/content_cache_rendered_haproxy_test_output_auto_maxconns.txt
+++ b/tests/unit/files/content_cache_rendered_haproxy_test_output_auto_maxconns.txt
@@ -155,15 +155,15 @@ listen site9-local
155 default_backend backend-site9-local155 default_backend backend-site9-local
156156
157backend backend-cached-site1-local157backend backend-cached-site1-local
158 option forwardfor
159 option httpchk HEAD /?token=1861920000_f3e404e205ed44749e942d481f7a7bec57c5e78a HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk158 option httpchk HEAD /?token=1861920000_f3e404e205ed44749e942d481f7a7bec57c5e78a HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk
159 http-request set-header X-Cache-Request-IP %[src]
160 http-request set-header Host site1.local160 http-request set-header Host site1.local
161 balance leastconn161 balance leastconn
162 server server_1 127.0.0.1:6080 check inter 2s rise 2 fall 60 maxconn 600162 server server_1 127.0.0.1:6080 check inter 2s rise 2 fall 60 maxconn 600
163163
164backend backend-site1-local164backend backend-site1-local
165 option redispatch 1
166 option httpchk HEAD / HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk165 option httpchk HEAD / HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk
166 option redispatch 1
167 http-request set-header Host site1.local167 http-request set-header Host site1.local
168 balance leastconn168 balance leastconn
169 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200169 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
@@ -171,15 +171,15 @@ backend backend-site1-local
171 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 200171 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 200
172172
173backend backend-cached-site2-local173backend backend-cached-site2-local
174 option forwardfor
175 option httpchk GET /check/ HTTP/1.0\r\nHost:\ site2.local\r\nUser-Agent:\ haproxy/httpchk174 option httpchk GET /check/ HTTP/1.0\r\nHost:\ site2.local\r\nUser-Agent:\ haproxy/httpchk
175 http-request set-header X-Cache-Request-IP %[src]
176 http-request set-header Host site2.local176 http-request set-header Host site2.local
177 balance leastconn177 balance leastconn
178 server server_1 127.0.0.1:6081 check inter 2s rise 2 fall 60 maxconn 3072178 server server_1 127.0.0.1:6081 check inter 2s rise 2 fall 60 maxconn 3072
179179
180backend backend-site2-local180backend backend-site2-local
181 option redispatch 1
182 option httpchk GET /check/ HTTP/1.0\r\nHost:\ site2.local\r\nUser-Agent:\ haproxy/httpchk181 option httpchk GET /check/ HTTP/1.0\r\nHost:\ site2.local\r\nUser-Agent:\ haproxy/httpchk
182 option redispatch 1
183 http-request set-header Host site2.local183 http-request set-header Host site2.local
184 balance leastconn184 balance leastconn
185 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt185 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt
@@ -187,17 +187,17 @@ backend backend-site2-local
187 server server_3 127.0.1.12:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt187 server server_3 127.0.1.12:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt
188188
189backend backend-cached-site3-local189backend backend-cached-site3-local
190 option forwardfor
191 option httpchk HEAD / HTTP/1.0\r\nHost:\ site3.local\r\nUser-Agent:\ haproxy/httpchk190 option httpchk HEAD / HTTP/1.0\r\nHost:\ site3.local\r\nUser-Agent:\ haproxy/httpchk
191 http-request set-header X-Cache-Request-IP %[src]
192 http-request set-header Host site3.local192 http-request set-header Host site3.local
193 balance leastconn193 balance leastconn
194 server server_1 127.0.0.1:6082 check inter 2s rise 2 fall 60 maxconn 4096194 server server_1 127.0.0.1:6082 check inter 2s rise 2 fall 60 maxconn 4096
195195
196backend backend-site3-local196backend backend-site3-local
197 option forwardfor except 127.0.0.1197 option httpchk HEAD / HTTP/1.0\r\nHost:\ site3.local\r\nUser-Agent:\ haproxy/httpchk
198 option forwardfor except 127.0.0.1 192.168.1.1
198 option forceclose199 option forceclose
199 option redispatch 1200 option redispatch 1
200 option httpchk HEAD / HTTP/1.0\r\nHost:\ site3.local\r\nUser-Agent:\ haproxy/httpchk
201 http-request set-header Host site3.local201 http-request set-header Host site3.local
202 balance leastconn202 balance leastconn
203 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200203 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
@@ -205,92 +205,92 @@ backend backend-site3-local
205 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 200205 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 200
206206
207backend backend-cached-site4-local207backend backend-cached-site4-local
208 option forwardfor
209 option httpchk HEAD / HTTP/1.0\r\nHost:\ site4.local\r\nUser-Agent:\ haproxy/httpchk208 option httpchk HEAD / HTTP/1.0\r\nHost:\ site4.local\r\nUser-Agent:\ haproxy/httpchk
209 http-request set-header X-Cache-Request-IP %[src]
210 http-request set-header Host site4.local210 http-request set-header Host site4.local
211 balance leastconn211 balance leastconn
212 server server_1 127.0.0.1:6083 check inter 2s rise 2 fall 60 maxconn 200212 server server_1 127.0.0.1:6083 check inter 2s rise 2 fall 60 maxconn 200
213213
214backend backend-cached-site5214backend backend-cached-site5
215 option forwardfor
216 option httpchk HEAD / HTTP/1.0\r\nHost:\ site5.local\r\nUser-Agent:\ haproxy/httpchk215 option httpchk HEAD / HTTP/1.0\r\nHost:\ site5.local\r\nUser-Agent:\ haproxy/httpchk
216 http-request set-header X-Cache-Request-IP %[src]
217 http-request set-header Host site5.local217 http-request set-header Host site5.local
218 balance leastconn218 balance leastconn
219 server server_1 127.0.0.1:6084 check inter 2s rise 2 fall 60 maxconn 200219 server server_1 127.0.0.1:6084 check inter 2s rise 2 fall 60 maxconn 200
220220
221backend backend-site5221backend backend-site5
222 option redispatch 1
223 option httpchk HEAD / HTTP/1.0\r\nHost:\ site5.local\r\nUser-Agent:\ haproxy/httpchk222 option httpchk HEAD / HTTP/1.0\r\nHost:\ site5.local\r\nUser-Agent:\ haproxy/httpchk
223 option redispatch 1
224 http-request set-header Host site5.local224 http-request set-header Host site5.local
225 balance leastconn225 balance leastconn
226 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200226 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
227227
228backend backend-site5-2228backend backend-site5-2
229 option redispatch 1
230 option httpchk HEAD / HTTP/1.0\r\nHost:\ site5.local\r\nUser-Agent:\ haproxy/httpchk229 option httpchk HEAD / HTTP/1.0\r\nHost:\ site5.local\r\nUser-Agent:\ haproxy/httpchk
230 option redispatch 1
231 http-request set-header Host site5.local231 http-request set-header Host site5.local
232 balance leastconn232 balance leastconn
233 server server_1 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200233 server server_1 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200
234234
235backend backend-cached-site6-local235backend backend-cached-site6-local
236 option forwardfor
237 option httpchk HEAD / HTTP/1.0\r\nHost:\ site6.local\r\nUser-Agent:\ haproxy/httpchk236 option httpchk HEAD / HTTP/1.0\r\nHost:\ site6.local\r\nUser-Agent:\ haproxy/httpchk
237 http-request set-header X-Cache-Request-IP %[src]
238 http-request set-header Host site6.local238 http-request set-header Host site6.local
239 balance leastconn239 balance leastconn
240 server server_1 127.0.0.1:6085 check inter 2s rise 2 fall 60 maxconn 200240 server server_1 127.0.0.1:6085 check inter 2s rise 2 fall 60 maxconn 200
241241
242backend backend-site6-local242backend backend-site6-local
243 option redispatch 1
244 option httpchk HEAD / HTTP/1.0\r\nHost:\ site6.local\r\nUser-Agent:\ haproxy/httpchk243 option httpchk HEAD / HTTP/1.0\r\nHost:\ site6.local\r\nUser-Agent:\ haproxy/httpchk
244 option redispatch 1
245 http-request set-header Host site6.local245 http-request set-header Host site6.local
246 balance leastconn246 balance leastconn
247 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(site6.local) check-sni site6.local verify required ca-file ca-certificates.crt247 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(site6.local) check-sni site6.local verify required ca-file ca-certificates.crt
248248
249backend backend-cached-site7-local249backend backend-cached-site7-local
250 option forwardfor
251 option httpchk HEAD / HTTP/1.0\r\nHost:\ site7.local\r\nUser-Agent:\ haproxy/httpchk250 option httpchk HEAD / HTTP/1.0\r\nHost:\ site7.local\r\nUser-Agent:\ haproxy/httpchk
251 http-request set-header X-Cache-Request-IP %[src]
252 http-request set-header Host site7.local252 http-request set-header Host site7.local
253 balance leastconn253 balance leastconn
254 server server_1 127.0.0.1:6086 check inter 2s rise 2 fall 60 maxconn 200254 server server_1 127.0.0.1:6086 check inter 2s rise 2 fall 60 maxconn 200
255255
256backend backend-site7-local256backend backend-site7-local
257 option redispatch 1
258 option httpchk HEAD / HTTP/1.0\r\nHost:\ site7.local\r\nUser-Agent:\ haproxy/httpchk257 option httpchk HEAD / HTTP/1.0\r\nHost:\ site7.local\r\nUser-Agent:\ haproxy/httpchk
258 option redispatch 1
259 http-request set-header Host site7.local259 http-request set-header Host site7.local
260 balance leastconn260 balance leastconn
261 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200261 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
262262
263backend backend-cached-site8-local263backend backend-cached-site8-local
264 option forwardfor
265 option httpchk HEAD / HTTP/1.0\r\nHost:\ site8.local\r\nUser-Agent:\ haproxy/httpchk264 option httpchk HEAD / HTTP/1.0\r\nHost:\ site8.local\r\nUser-Agent:\ haproxy/httpchk
265 http-request set-header X-Cache-Request-IP %[src]
266 http-request set-header Host site8.local266 http-request set-header Host site8.local
267 balance leastconn267 balance leastconn
268 server server_1 127.0.0.1:6087 check inter 2s rise 2 fall 60 maxconn 200268 server server_1 127.0.0.1:6087 check inter 2s rise 2 fall 60 maxconn 200
269269
270backend backend-site8-local270backend backend-site8-local
271 option redispatch 1
272 option httpchk HEAD / HTTP/1.0\r\nHost:\ site8.local\r\nUser-Agent:\ haproxy/httpchk271 option httpchk HEAD / HTTP/1.0\r\nHost:\ site8.local\r\nUser-Agent:\ haproxy/httpchk
272 option redispatch 1
273 http-request set-header Host site8.local273 http-request set-header Host site8.local
274 balance leastconn274 balance leastconn
275 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200275 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
276276
277backend backend-site8-local-2277backend backend-site8-local-2
278 option redispatch 1
279 option httpchk HEAD / HTTP/1.0\r\nHost:\ auth.site8.local\r\nUser-Agent:\ haproxy/httpchk278 option httpchk HEAD / HTTP/1.0\r\nHost:\ auth.site8.local\r\nUser-Agent:\ haproxy/httpchk
279 option redispatch 1
280 http-request set-header Host auth.site8.local280 http-request set-header Host auth.site8.local
281 balance leastconn281 balance leastconn
282 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(auth.site8.local) check-sni auth.site8.local verify required ca-file ca-certificates.crt282 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(auth.site8.local) check-sni auth.site8.local verify required ca-file ca-certificates.crt
283283
284backend backend-cached-site9-local284backend backend-cached-site9-local
285 option forwardfor
286 option httpchk HEAD / HTTP/1.0\r\nHost:\ site9.local\r\nUser-Agent:\ haproxy/httpchk285 option httpchk HEAD / HTTP/1.0\r\nHost:\ site9.local\r\nUser-Agent:\ haproxy/httpchk
286 http-request set-header X-Cache-Request-IP %[src]
287 http-request set-header Host site9.local287 http-request set-header Host site9.local
288 balance leastconn288 balance leastconn
289 server server_1 127.0.0.1:6088 check inter 2s rise 2 fall 60 maxconn 200289 server server_1 127.0.0.1:6088 check inter 2s rise 2 fall 60 maxconn 200
290290
291backend backend-site9-local291backend backend-site9-local
292 option redispatch 1
293 option httpchk HEAD / HTTP/1.0\r\nHost:\ site9.local\r\nUser-Agent:\ haproxy/httpchk292 option httpchk HEAD / HTTP/1.0\r\nHost:\ site9.local\r\nUser-Agent:\ haproxy/httpchk
293 option redispatch 1
294 http-request set-header Host site9.local294 http-request set-header Host site9.local
295 balance leastconn295 balance leastconn
296 server server_1 127.0.1.15:80 check inter 1m rise 2 fall 5 maxconn 200296 server server_1 127.0.1.15:80 check inter 1m rise 2 fall 5 maxconn 200
diff --git a/tests/unit/files/content_cache_rendered_haproxy_test_output_backup.txt b/tests/unit/files/content_cache_rendered_haproxy_test_output_backup.txt
index aaf84c5..3a80145 100644
--- a/tests/unit/files/content_cache_rendered_haproxy_test_output_backup.txt
+++ b/tests/unit/files/content_cache_rendered_haproxy_test_output_backup.txt
@@ -95,24 +95,24 @@ listen site1-local-2
95 default_backend backend-site1-local-295 default_backend backend-site1-local-2
9696
97backend backend-cached-site1-local97backend backend-cached-site1-local
98 option forwardfor
99 option httpchk HEAD / HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk98 option httpchk HEAD / HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk
99 http-request set-header X-Cache-Request-IP %[src]
100 http-request set-header Host site1.local100 http-request set-header Host site1.local
101 balance leastconn101 balance leastconn
102 server server_1 127.0.0.1:6080 check inter 2s rise 2 fall 60 maxconn 400102 server server_1 127.0.0.1:6080 check inter 2s rise 2 fall 60 maxconn 400
103103
104backend backend-site1-local104backend backend-site1-local
105 option httpchk HEAD / HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk
105 option allbackups106 option allbackups
106 option redispatch 1107 option redispatch 1
107 option httpchk HEAD / HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk
108 http-request set-header Host site1.local108 http-request set-header Host site1.local
109 balance leastconn109 balance leastconn
110 server server_1 192.168.1.1:8080 check inter 5s rise 2 fall 5 maxconn 200110 server server_1 192.168.1.1:8080 check inter 5s rise 2 fall 5 maxconn 200
111 server server_2 192.168.1.2:8080 backup check inter 5s rise 2 fall 5 maxconn 200111 server server_2 192.168.1.2:8080 backup check inter 5s rise 2 fall 5 maxconn 200
112112
113backend backend-site1-local-2113backend backend-site1-local-2
114 option redispatch 1
115 option httpchk HEAD / HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk114 option httpchk HEAD / HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk
115 option redispatch 1
116 http-request set-header Host site1.local116 http-request set-header Host site1.local
117 balance leastconn117 balance leastconn
118 server server_1 192.168.1.1:8080 check inter 5s rise 2 fall 5 maxconn 200118 server server_1 192.168.1.1:8080 check inter 5s rise 2 fall 5 maxconn 200
diff --git a/tests/unit/files/content_cache_rendered_haproxy_test_output_load_balancing_algorithm.txt b/tests/unit/files/content_cache_rendered_haproxy_test_output_load_balancing_algorithm.txt
index 29451b9..0d34d81 100644
--- a/tests/unit/files/content_cache_rendered_haproxy_test_output_load_balancing_algorithm.txt
+++ b/tests/unit/files/content_cache_rendered_haproxy_test_output_load_balancing_algorithm.txt
@@ -155,15 +155,15 @@ listen site9-local
155 default_backend backend-site9-local155 default_backend backend-site9-local
156156
157backend backend-cached-site1-local157backend backend-cached-site1-local
158 option forwardfor
159 option httpchk HEAD /?token=1861920000_f3e404e205ed44749e942d481f7a7bec57c5e78a HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk158 option httpchk HEAD /?token=1861920000_f3e404e205ed44749e942d481f7a7bec57c5e78a HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk
159 http-request set-header X-Cache-Request-IP %[src]
160 http-request set-header Host site1.local160 http-request set-header Host site1.local
161 balance roundrobin161 balance roundrobin
162 server server_1 127.0.0.1:6080 check inter 2s rise 2 fall 60 maxconn 600162 server server_1 127.0.0.1:6080 check inter 2s rise 2 fall 60 maxconn 600
163163
164backend backend-site1-local164backend backend-site1-local
165 option redispatch 1
166 option httpchk HEAD / HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk165 option httpchk HEAD / HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk
166 option redispatch 1
167 http-request set-header Host site1.local167 http-request set-header Host site1.local
168 balance roundrobin168 balance roundrobin
169 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200169 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
@@ -171,15 +171,15 @@ backend backend-site1-local
171 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 200171 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 200
172172
173backend backend-cached-site2-local173backend backend-cached-site2-local
174 option forwardfor
175 option httpchk GET /check/ HTTP/1.0\r\nHost:\ site2.local\r\nUser-Agent:\ haproxy/httpchk174 option httpchk GET /check/ HTTP/1.0\r\nHost:\ site2.local\r\nUser-Agent:\ haproxy/httpchk
175 http-request set-header X-Cache-Request-IP %[src]
176 http-request set-header Host site2.local176 http-request set-header Host site2.local
177 balance roundrobin177 balance roundrobin
178 server server_1 127.0.0.1:6081 check inter 2s rise 2 fall 60 maxconn 3072178 server server_1 127.0.0.1:6081 check inter 2s rise 2 fall 60 maxconn 3072
179179
180backend backend-site2-local180backend backend-site2-local
181 option redispatch 1
182 option httpchk GET /check/ HTTP/1.0\r\nHost:\ site2.local\r\nUser-Agent:\ haproxy/httpchk181 option httpchk GET /check/ HTTP/1.0\r\nHost:\ site2.local\r\nUser-Agent:\ haproxy/httpchk
182 option redispatch 1
183 http-request set-header Host site2.local183 http-request set-header Host site2.local
184 balance roundrobin184 balance roundrobin
185 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt185 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt
@@ -187,17 +187,17 @@ backend backend-site2-local
187 server server_3 127.0.1.12:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt187 server server_3 127.0.1.12:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt
188188
189backend backend-cached-site3-local189backend backend-cached-site3-local
190 option forwardfor
191 option httpchk HEAD / HTTP/1.0\r\nHost:\ site3.local\r\nUser-Agent:\ haproxy/httpchk190 option httpchk HEAD / HTTP/1.0\r\nHost:\ site3.local\r\nUser-Agent:\ haproxy/httpchk
191 http-request set-header X-Cache-Request-IP %[src]
192 http-request set-header Host site3.local192 http-request set-header Host site3.local
193 balance roundrobin193 balance roundrobin
194 server server_1 127.0.0.1:6082 check inter 2s rise 2 fall 60 maxconn 4096194 server server_1 127.0.0.1:6082 check inter 2s rise 2 fall 60 maxconn 4096
195195
196backend backend-site3-local196backend backend-site3-local
197 option forwardfor except 127.0.0.1197 option httpchk HEAD / HTTP/1.0\r\nHost:\ site3.local\r\nUser-Agent:\ haproxy/httpchk
198 option forwardfor except 127.0.0.1 192.168.1.1
198 option forceclose199 option forceclose
199 option redispatch 1200 option redispatch 1
200 option httpchk HEAD / HTTP/1.0\r\nHost:\ site3.local\r\nUser-Agent:\ haproxy/httpchk
201 http-request set-header Host site3.local201 http-request set-header Host site3.local
202 balance roundrobin202 balance roundrobin
203 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200203 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
@@ -205,92 +205,92 @@ backend backend-site3-local
205 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 200205 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 200
206206
207backend backend-cached-site4-local207backend backend-cached-site4-local
208 option forwardfor
209 option httpchk HEAD / HTTP/1.0\r\nHost:\ site4.local\r\nUser-Agent:\ haproxy/httpchk208 option httpchk HEAD / HTTP/1.0\r\nHost:\ site4.local\r\nUser-Agent:\ haproxy/httpchk
209 http-request set-header X-Cache-Request-IP %[src]
210 http-request set-header Host site4.local210 http-request set-header Host site4.local
211 balance roundrobin211 balance roundrobin
212 server server_1 127.0.0.1:6083 check inter 2s rise 2 fall 60 maxconn 200212 server server_1 127.0.0.1:6083 check inter 2s rise 2 fall 60 maxconn 200
213213
214backend backend-cached-site5214backend backend-cached-site5
215 option forwardfor
216 option httpchk HEAD / HTTP/1.0\r\nHost:\ site5.local\r\nUser-Agent:\ haproxy/httpchk215 option httpchk HEAD / HTTP/1.0\r\nHost:\ site5.local\r\nUser-Agent:\ haproxy/httpchk
216 http-request set-header X-Cache-Request-IP %[src]
217 http-request set-header Host site5.local217 http-request set-header Host site5.local
218 balance roundrobin218 balance roundrobin
219 server server_1 127.0.0.1:6084 check inter 2s rise 2 fall 60 maxconn 200219 server server_1 127.0.0.1:6084 check inter 2s rise 2 fall 60 maxconn 200
220220
221backend backend-site5221backend backend-site5
222 option redispatch 1
223 option httpchk HEAD / HTTP/1.0\r\nHost:\ site5.local\r\nUser-Agent:\ haproxy/httpchk222 option httpchk HEAD / HTTP/1.0\r\nHost:\ site5.local\r\nUser-Agent:\ haproxy/httpchk
223 option redispatch 1
224 http-request set-header Host site5.local224 http-request set-header Host site5.local
225 balance roundrobin225 balance roundrobin
226 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200226 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
227227
228backend backend-site5-2228backend backend-site5-2
229 option redispatch 1
230 option httpchk HEAD / HTTP/1.0\r\nHost:\ site5.local\r\nUser-Agent:\ haproxy/httpchk229 option httpchk HEAD / HTTP/1.0\r\nHost:\ site5.local\r\nUser-Agent:\ haproxy/httpchk
230 option redispatch 1
231 http-request set-header Host site5.local231 http-request set-header Host site5.local
232 balance roundrobin232 balance roundrobin
233 server server_1 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200233 server server_1 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200
234234
235backend backend-cached-site6-local235backend backend-cached-site6-local
236 option forwardfor
237 option httpchk HEAD / HTTP/1.0\r\nHost:\ site6.local\r\nUser-Agent:\ haproxy/httpchk236 option httpchk HEAD / HTTP/1.0\r\nHost:\ site6.local\r\nUser-Agent:\ haproxy/httpchk
237 http-request set-header X-Cache-Request-IP %[src]
238 http-request set-header Host site6.local238 http-request set-header Host site6.local
239 balance roundrobin239 balance roundrobin
240 server server_1 127.0.0.1:6085 check inter 2s rise 2 fall 60 maxconn 200240 server server_1 127.0.0.1:6085 check inter 2s rise 2 fall 60 maxconn 200
241241
242backend backend-site6-local242backend backend-site6-local
243 option redispatch 1
244 option httpchk HEAD / HTTP/1.0\r\nHost:\ site6.local\r\nUser-Agent:\ haproxy/httpchk243 option httpchk HEAD / HTTP/1.0\r\nHost:\ site6.local\r\nUser-Agent:\ haproxy/httpchk
244 option redispatch 1
245 http-request set-header Host site6.local245 http-request set-header Host site6.local
246 balance roundrobin246 balance roundrobin
247 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(site6.local) check-sni site6.local verify required ca-file ca-certificates.crt247 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(site6.local) check-sni site6.local verify required ca-file ca-certificates.crt
248248
249backend backend-cached-site7-local249backend backend-cached-site7-local
250 option forwardfor
251 option httpchk HEAD / HTTP/1.0\r\nHost:\ site7.local\r\nUser-Agent:\ haproxy/httpchk250 option httpchk HEAD / HTTP/1.0\r\nHost:\ site7.local\r\nUser-Agent:\ haproxy/httpchk
251 http-request set-header X-Cache-Request-IP %[src]
252 http-request set-header Host site7.local252 http-request set-header Host site7.local
253 balance roundrobin253 balance roundrobin
254 server server_1 127.0.0.1:6086 check inter 2s rise 2 fall 60 maxconn 200254 server server_1 127.0.0.1:6086 check inter 2s rise 2 fall 60 maxconn 200
255255
256backend backend-site7-local256backend backend-site7-local
257 option redispatch 1
258 option httpchk HEAD / HTTP/1.0\r\nHost:\ site7.local\r\nUser-Agent:\ haproxy/httpchk257 option httpchk HEAD / HTTP/1.0\r\nHost:\ site7.local\r\nUser-Agent:\ haproxy/httpchk
258 option redispatch 1
259 http-request set-header Host site7.local259 http-request set-header Host site7.local
260 balance roundrobin260 balance roundrobin
261 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200261 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
262262
263backend backend-cached-site8-local263backend backend-cached-site8-local
264 option forwardfor
265 option httpchk HEAD / HTTP/1.0\r\nHost:\ site8.local\r\nUser-Agent:\ haproxy/httpchk264 option httpchk HEAD / HTTP/1.0\r\nHost:\ site8.local\r\nUser-Agent:\ haproxy/httpchk
265 http-request set-header X-Cache-Request-IP %[src]
266 http-request set-header Host site8.local266 http-request set-header Host site8.local
267 balance roundrobin267 balance roundrobin
268 server server_1 127.0.0.1:6087 check inter 2s rise 2 fall 60 maxconn 200268 server server_1 127.0.0.1:6087 check inter 2s rise 2 fall 60 maxconn 200
269269
270backend backend-site8-local270backend backend-site8-local
271 option redispatch 1
272 option httpchk HEAD / HTTP/1.0\r\nHost:\ site8.local\r\nUser-Agent:\ haproxy/httpchk271 option httpchk HEAD / HTTP/1.0\r\nHost:\ site8.local\r\nUser-Agent:\ haproxy/httpchk
272 option redispatch 1
273 http-request set-header Host site8.local273 http-request set-header Host site8.local
274 balance roundrobin274 balance roundrobin
275 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200275 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
276276
277backend backend-site8-local-2277backend backend-site8-local-2
278 option redispatch 1
279 option httpchk HEAD / HTTP/1.0\r\nHost:\ auth.site8.local\r\nUser-Agent:\ haproxy/httpchk278 option httpchk HEAD / HTTP/1.0\r\nHost:\ auth.site8.local\r\nUser-Agent:\ haproxy/httpchk
279 option redispatch 1
280 http-request set-header Host auth.site8.local280 http-request set-header Host auth.site8.local
281 balance roundrobin281 balance roundrobin
282 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(auth.site8.local) check-sni auth.site8.local verify required ca-file ca-certificates.crt282 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(auth.site8.local) check-sni auth.site8.local verify required ca-file ca-certificates.crt
283283
284backend backend-cached-site9-local284backend backend-cached-site9-local
285 option forwardfor
286 option httpchk HEAD / HTTP/1.0\r\nHost:\ site9.local\r\nUser-Agent:\ haproxy/httpchk285 option httpchk HEAD / HTTP/1.0\r\nHost:\ site9.local\r\nUser-Agent:\ haproxy/httpchk
286 http-request set-header X-Cache-Request-IP %[src]
287 http-request set-header Host site9.local287 http-request set-header Host site9.local
288 balance roundrobin288 balance roundrobin
289 server server_1 127.0.0.1:6088 check inter 2s rise 2 fall 60 maxconn 200289 server server_1 127.0.0.1:6088 check inter 2s rise 2 fall 60 maxconn 200
290290
291backend backend-site9-local291backend backend-site9-local
292 option redispatch 1
293 option httpchk HEAD / HTTP/1.0\r\nHost:\ site9.local\r\nUser-Agent:\ haproxy/httpchk292 option httpchk HEAD / HTTP/1.0\r\nHost:\ site9.local\r\nUser-Agent:\ haproxy/httpchk
293 option redispatch 1
294 http-request set-header Host site9.local294 http-request set-header Host site9.local
295 balance roundrobin295 balance roundrobin
296 server server_1 127.0.1.15:80 check inter 1m rise 2 fall 5 maxconn 200296 server server_1 127.0.1.15:80 check inter 1m rise 2 fall 5 maxconn 200
diff --git a/tests/unit/files/content_cache_rendered_haproxy_test_output_processes_and_threads.txt b/tests/unit/files/content_cache_rendered_haproxy_test_output_processes_and_threads.txt
index ea91f8d..5e49b0f 100644
--- a/tests/unit/files/content_cache_rendered_haproxy_test_output_processes_and_threads.txt
+++ b/tests/unit/files/content_cache_rendered_haproxy_test_output_processes_and_threads.txt
@@ -156,15 +156,15 @@ listen site9-local
156 default_backend backend-site9-local156 default_backend backend-site9-local
157157
158backend backend-cached-site1-local158backend backend-cached-site1-local
159 option forwardfor
160 option httpchk HEAD /?token=1861920000_f3e404e205ed44749e942d481f7a7bec57c5e78a HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk159 option httpchk HEAD /?token=1861920000_f3e404e205ed44749e942d481f7a7bec57c5e78a HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk
160 http-request set-header X-Cache-Request-IP %[src]
161 http-request set-header Host site1.local161 http-request set-header Host site1.local
162 balance leastconn162 balance leastconn
163 server server_1 127.0.0.1:6080 check inter 2s rise 2 fall 60 maxconn 600163 server server_1 127.0.0.1:6080 check inter 2s rise 2 fall 60 maxconn 600
164164
165backend backend-site1-local165backend backend-site1-local
166 option redispatch 1
167 option httpchk HEAD / HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk166 option httpchk HEAD / HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk
167 option redispatch 1
168 http-request set-header Host site1.local168 http-request set-header Host site1.local
169 balance leastconn169 balance leastconn
170 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200170 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
@@ -172,15 +172,15 @@ backend backend-site1-local
172 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 200172 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 200
173173
174backend backend-cached-site2-local174backend backend-cached-site2-local
175 option forwardfor
176 option httpchk GET /check/ HTTP/1.0\r\nHost:\ site2.local\r\nUser-Agent:\ haproxy/httpchk175 option httpchk GET /check/ HTTP/1.0\r\nHost:\ site2.local\r\nUser-Agent:\ haproxy/httpchk
176 http-request set-header X-Cache-Request-IP %[src]
177 http-request set-header Host site2.local177 http-request set-header Host site2.local
178 balance leastconn178 balance leastconn
179 server server_1 127.0.0.1:6081 check inter 2s rise 2 fall 60 maxconn 3072179 server server_1 127.0.0.1:6081 check inter 2s rise 2 fall 60 maxconn 3072
180180
181backend backend-site2-local181backend backend-site2-local
182 option redispatch 1
183 option httpchk GET /check/ HTTP/1.0\r\nHost:\ site2.local\r\nUser-Agent:\ haproxy/httpchk182 option httpchk GET /check/ HTTP/1.0\r\nHost:\ site2.local\r\nUser-Agent:\ haproxy/httpchk
183 option redispatch 1
184 http-request set-header Host site2.local184 http-request set-header Host site2.local
185 balance leastconn185 balance leastconn
186 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt186 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt
@@ -188,17 +188,17 @@ backend backend-site2-local
188 server server_3 127.0.1.12:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt188 server server_3 127.0.1.12:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt
189189
190backend backend-cached-site3-local190backend backend-cached-site3-local
191 option forwardfor
192 option httpchk HEAD / HTTP/1.0\r\nHost:\ site3.local\r\nUser-Agent:\ haproxy/httpchk191 option httpchk HEAD / HTTP/1.0\r\nHost:\ site3.local\r\nUser-Agent:\ haproxy/httpchk
192 http-request set-header X-Cache-Request-IP %[src]
193 http-request set-header Host site3.local193 http-request set-header Host site3.local
194 balance leastconn194 balance leastconn
195 server server_1 127.0.0.1:6082 check inter 2s rise 2 fall 60 maxconn 4096195 server server_1 127.0.0.1:6082 check inter 2s rise 2 fall 60 maxconn 4096
196196
197backend backend-site3-local197backend backend-site3-local
198 option forwardfor except 127.0.0.1198 option httpchk HEAD / HTTP/1.0\r\nHost:\ site3.local\r\nUser-Agent:\ haproxy/httpchk
199 option forwardfor except 127.0.0.1 192.168.1.1
199 option forceclose200 option forceclose
200 option redispatch 1201 option redispatch 1
201 option httpchk HEAD / HTTP/1.0\r\nHost:\ site3.local\r\nUser-Agent:\ haproxy/httpchk
202 http-request set-header Host site3.local202 http-request set-header Host site3.local
203 balance leastconn203 balance leastconn
204 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200204 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
@@ -206,92 +206,92 @@ backend backend-site3-local
206 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 200206 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 200
207207
208backend backend-cached-site4-local208backend backend-cached-site4-local
209 option forwardfor
210 option httpchk HEAD / HTTP/1.0\r\nHost:\ site4.local\r\nUser-Agent:\ haproxy/httpchk209 option httpchk HEAD / HTTP/1.0\r\nHost:\ site4.local\r\nUser-Agent:\ haproxy/httpchk
210 http-request set-header X-Cache-Request-IP %[src]
211 http-request set-header Host site4.local211 http-request set-header Host site4.local
212 balance leastconn212 balance leastconn
213 server server_1 127.0.0.1:6083 check inter 2s rise 2 fall 60 maxconn 200213 server server_1 127.0.0.1:6083 check inter 2s rise 2 fall 60 maxconn 200
214214
215backend backend-cached-site5215backend backend-cached-site5
216 option forwardfor
217 option httpchk HEAD / HTTP/1.0\r\nHost:\ site5.local\r\nUser-Agent:\ haproxy/httpchk216 option httpchk HEAD / HTTP/1.0\r\nHost:\ site5.local\r\nUser-Agent:\ haproxy/httpchk
217 http-request set-header X-Cache-Request-IP %[src]
218 http-request set-header Host site5.local218 http-request set-header Host site5.local
219 balance leastconn219 balance leastconn
220 server server_1 127.0.0.1:6084 check inter 2s rise 2 fall 60 maxconn 200220 server server_1 127.0.0.1:6084 check inter 2s rise 2 fall 60 maxconn 200
221221
222backend backend-site5222backend backend-site5
223 option redispatch 1
224 option httpchk HEAD / HTTP/1.0\r\nHost:\ site5.local\r\nUser-Agent:\ haproxy/httpchk223 option httpchk HEAD / HTTP/1.0\r\nHost:\ site5.local\r\nUser-Agent:\ haproxy/httpchk
224 option redispatch 1
225 http-request set-header Host site5.local225 http-request set-header Host site5.local
226 balance leastconn226 balance leastconn
227 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200227 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
228228
229backend backend-site5-2229backend backend-site5-2
230 option redispatch 1
231 option httpchk HEAD / HTTP/1.0\r\nHost:\ site5.local\r\nUser-Agent:\ haproxy/httpchk230 option httpchk HEAD / HTTP/1.0\r\nHost:\ site5.local\r\nUser-Agent:\ haproxy/httpchk
231 option redispatch 1
232 http-request set-header Host site5.local232 http-request set-header Host site5.local
233 balance leastconn233 balance leastconn
234 server server_1 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200234 server server_1 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200
235235
236backend backend-cached-site6-local236backend backend-cached-site6-local
237 option forwardfor
238 option httpchk HEAD / HTTP/1.0\r\nHost:\ site6.local\r\nUser-Agent:\ haproxy/httpchk237 option httpchk HEAD / HTTP/1.0\r\nHost:\ site6.local\r\nUser-Agent:\ haproxy/httpchk
238 http-request set-header X-Cache-Request-IP %[src]
239 http-request set-header Host site6.local239 http-request set-header Host site6.local
240 balance leastconn240 balance leastconn
241 server server_1 127.0.0.1:6085 check inter 2s rise 2 fall 60 maxconn 200241 server server_1 127.0.0.1:6085 check inter 2s rise 2 fall 60 maxconn 200
242242
243backend backend-site6-local243backend backend-site6-local
244 option redispatch 1
245 option httpchk HEAD / HTTP/1.0\r\nHost:\ site6.local\r\nUser-Agent:\ haproxy/httpchk244 option httpchk HEAD / HTTP/1.0\r\nHost:\ site6.local\r\nUser-Agent:\ haproxy/httpchk
245 option redispatch 1
246 http-request set-header Host site6.local246 http-request set-header Host site6.local
247 balance leastconn247 balance leastconn
248 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(site6.local) check-sni site6.local verify required ca-file ca-certificates.crt248 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(site6.local) check-sni site6.local verify required ca-file ca-certificates.crt
249249
250backend backend-cached-site7-local250backend backend-cached-site7-local
251 option forwardfor
252 option httpchk HEAD / HTTP/1.0\r\nHost:\ site7.local\r\nUser-Agent:\ haproxy/httpchk251 option httpchk HEAD / HTTP/1.0\r\nHost:\ site7.local\r\nUser-Agent:\ haproxy/httpchk
252 http-request set-header X-Cache-Request-IP %[src]
253 http-request set-header Host site7.local253 http-request set-header Host site7.local
254 balance leastconn254 balance leastconn
255 server server_1 127.0.0.1:6086 check inter 2s rise 2 fall 60 maxconn 200255 server server_1 127.0.0.1:6086 check inter 2s rise 2 fall 60 maxconn 200
256256
257backend backend-site7-local257backend backend-site7-local
258 option redispatch 1
259 option httpchk HEAD / HTTP/1.0\r\nHost:\ site7.local\r\nUser-Agent:\ haproxy/httpchk258 option httpchk HEAD / HTTP/1.0\r\nHost:\ site7.local\r\nUser-Agent:\ haproxy/httpchk
259 option redispatch 1
260 http-request set-header Host site7.local260 http-request set-header Host site7.local
261 balance leastconn261 balance leastconn
262 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200262 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
263263
264backend backend-cached-site8-local264backend backend-cached-site8-local
265 option forwardfor
266 option httpchk HEAD / HTTP/1.0\r\nHost:\ site8.local\r\nUser-Agent:\ haproxy/httpchk265 option httpchk HEAD / HTTP/1.0\r\nHost:\ site8.local\r\nUser-Agent:\ haproxy/httpchk
266 http-request set-header X-Cache-Request-IP %[src]
267 http-request set-header Host site8.local267 http-request set-header Host site8.local
268 balance leastconn268 balance leastconn
269 server server_1 127.0.0.1:6087 check inter 2s rise 2 fall 60 maxconn 200269 server server_1 127.0.0.1:6087 check inter 2s rise 2 fall 60 maxconn 200
270270
271backend backend-site8-local271backend backend-site8-local
272 option redispatch 1
273 option httpchk HEAD / HTTP/1.0\r\nHost:\ site8.local\r\nUser-Agent:\ haproxy/httpchk272 option httpchk HEAD / HTTP/1.0\r\nHost:\ site8.local\r\nUser-Agent:\ haproxy/httpchk
273 option redispatch 1
274 http-request set-header Host site8.local274 http-request set-header Host site8.local
275 balance leastconn275 balance leastconn
276 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200276 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
277277
278backend backend-site8-local-2278backend backend-site8-local-2
279 option redispatch 1
280 option httpchk HEAD / HTTP/1.0\r\nHost:\ auth.site8.local\r\nUser-Agent:\ haproxy/httpchk279 option httpchk HEAD / HTTP/1.0\r\nHost:\ auth.site8.local\r\nUser-Agent:\ haproxy/httpchk
280 option redispatch 1
281 http-request set-header Host auth.site8.local281 http-request set-header Host auth.site8.local
282 balance leastconn282 balance leastconn
283 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(auth.site8.local) check-sni auth.site8.local verify required ca-file ca-certificates.crt283 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(auth.site8.local) check-sni auth.site8.local verify required ca-file ca-certificates.crt
284284
285backend backend-cached-site9-local285backend backend-cached-site9-local
286 option forwardfor
287 option httpchk HEAD / HTTP/1.0\r\nHost:\ site9.local\r\nUser-Agent:\ haproxy/httpchk286 option httpchk HEAD / HTTP/1.0\r\nHost:\ site9.local\r\nUser-Agent:\ haproxy/httpchk
287 http-request set-header X-Cache-Request-IP %[src]
288 http-request set-header Host site9.local288 http-request set-header Host site9.local
289 balance leastconn289 balance leastconn
290 server server_1 127.0.0.1:6088 check inter 2s rise 2 fall 60 maxconn 200290 server server_1 127.0.0.1:6088 check inter 2s rise 2 fall 60 maxconn 200
291291
292backend backend-site9-local292backend backend-site9-local
293 option redispatch 1
294 option httpchk HEAD / HTTP/1.0\r\nHost:\ site9.local\r\nUser-Agent:\ haproxy/httpchk293 option httpchk HEAD / HTTP/1.0\r\nHost:\ site9.local\r\nUser-Agent:\ haproxy/httpchk
294 option redispatch 1
295 http-request set-header Host site9.local295 http-request set-header Host site9.local
296 balance leastconn296 balance leastconn
297 server server_1 127.0.1.15:80 check inter 1m rise 2 fall 5 maxconn 200297 server server_1 127.0.1.15:80 check inter 1m rise 2 fall 5 maxconn 200
diff --git a/tests/unit/files/content_cache_rendered_haproxy_test_output_processes_and_threads_haproxy2.txt b/tests/unit/files/content_cache_rendered_haproxy_test_output_processes_and_threads_haproxy2.txt
index ef0a365..8cdfd8d 100644
--- a/tests/unit/files/content_cache_rendered_haproxy_test_output_processes_and_threads_haproxy2.txt
+++ b/tests/unit/files/content_cache_rendered_haproxy_test_output_processes_and_threads_haproxy2.txt
@@ -155,16 +155,16 @@ listen site9-local
155 default_backend backend-site9-local155 default_backend backend-site9-local
156156
157backend backend-cached-site1-local157backend backend-cached-site1-local
158 option forwardfor
159 option httpchk HEAD /?token=1861920000_f3e404e205ed44749e942d481f7a7bec57c5e78a HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk158 option httpchk HEAD /?token=1861920000_f3e404e205ed44749e942d481f7a7bec57c5e78a HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk
159 http-request set-header X-Cache-Request-IP %[src]
160 http-request set-header Host site1.local160 http-request set-header Host site1.local
161 balance leastconn161 balance leastconn
162 server server_1 127.0.0.1:6080 check inter 2s rise 2 fall 60 maxconn 600162 server server_1 127.0.0.1:6080 check inter 2s rise 2 fall 60 maxconn 600
163163
164backend backend-site1-local164backend backend-site1-local
165 option httpchk HEAD / HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk
165 retry-on all-retryable-errors166 retry-on all-retryable-errors
166 option redispatch 1167 option redispatch 1
167 option httpchk HEAD / HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk
168 http-request set-header Host site1.local168 http-request set-header Host site1.local
169 balance leastconn169 balance leastconn
170 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200170 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
@@ -172,16 +172,16 @@ backend backend-site1-local
172 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 200172 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 200
173173
174backend backend-cached-site2-local174backend backend-cached-site2-local
175 option forwardfor
176 option httpchk GET /check/ HTTP/1.0\r\nHost:\ site2.local\r\nUser-Agent:\ haproxy/httpchk175 option httpchk GET /check/ HTTP/1.0\r\nHost:\ site2.local\r\nUser-Agent:\ haproxy/httpchk
176 http-request set-header X-Cache-Request-IP %[src]
177 http-request set-header Host site2.local177 http-request set-header Host site2.local
178 balance leastconn178 balance leastconn
179 server server_1 127.0.0.1:6081 check inter 2s rise 2 fall 60 maxconn 3072179 server server_1 127.0.0.1:6081 check inter 2s rise 2 fall 60 maxconn 3072
180180
181backend backend-site2-local181backend backend-site2-local
182 option httpchk GET /check/ HTTP/1.0\r\nHost:\ site2.local\r\nUser-Agent:\ haproxy/httpchk
182 retry-on all-retryable-errors183 retry-on all-retryable-errors
183 option redispatch 1184 option redispatch 1
184 option httpchk GET /check/ HTTP/1.0\r\nHost:\ site2.local\r\nUser-Agent:\ haproxy/httpchk
185 http-request set-header Host site2.local185 http-request set-header Host site2.local
186 balance leastconn186 balance leastconn
187 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt187 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt
@@ -189,18 +189,18 @@ backend backend-site2-local
189 server server_3 127.0.1.12:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt189 server server_3 127.0.1.12:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt
190190
191backend backend-cached-site3-local191backend backend-cached-site3-local
192 option forwardfor
193 option httpchk HEAD / HTTP/1.0\r\nHost:\ site3.local\r\nUser-Agent:\ haproxy/httpchk192 option httpchk HEAD / HTTP/1.0\r\nHost:\ site3.local\r\nUser-Agent:\ haproxy/httpchk
193 http-request set-header X-Cache-Request-IP %[src]
194 http-request set-header Host site3.local194 http-request set-header Host site3.local
195 balance leastconn195 balance leastconn
196 server server_1 127.0.0.1:6082 check inter 2s rise 2 fall 60 maxconn 4096196 server server_1 127.0.0.1:6082 check inter 2s rise 2 fall 60 maxconn 4096
197197
198backend backend-site3-local198backend backend-site3-local
199 option forwardfor except 127.0.0.1199 option httpchk HEAD / HTTP/1.0\r\nHost:\ site3.local\r\nUser-Agent:\ haproxy/httpchk
200 option forwardfor except 127.0.0.1 192.168.1.1
200 option forceclose201 option forceclose
201 retry-on all-retryable-errors202 retry-on all-retryable-errors
202 option redispatch 1203 option redispatch 1
203 option httpchk HEAD / HTTP/1.0\r\nHost:\ site3.local\r\nUser-Agent:\ haproxy/httpchk
204 http-request set-header Host site3.local204 http-request set-header Host site3.local
205 balance leastconn205 balance leastconn
206 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200206 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
@@ -208,99 +208,99 @@ backend backend-site3-local
208 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 200208 server server_3 127.0.1.12:80 check inter 5s rise 2 fall 5 maxconn 200
209209
210backend backend-cached-site4-local210backend backend-cached-site4-local
211 option forwardfor
212 option httpchk HEAD / HTTP/1.0\r\nHost:\ site4.local\r\nUser-Agent:\ haproxy/httpchk211 option httpchk HEAD / HTTP/1.0\r\nHost:\ site4.local\r\nUser-Agent:\ haproxy/httpchk
212 http-request set-header X-Cache-Request-IP %[src]
213 http-request set-header Host site4.local213 http-request set-header Host site4.local
214 balance leastconn214 balance leastconn
215 server server_1 127.0.0.1:6083 check inter 2s rise 2 fall 60 maxconn 200215 server server_1 127.0.0.1:6083 check inter 2s rise 2 fall 60 maxconn 200
216216
217backend backend-cached-site5217backend backend-cached-site5
218 option forwardfor
219 option httpchk HEAD / HTTP/1.0\r\nHost:\ site5.local\r\nUser-Agent:\ haproxy/httpchk218 option httpchk HEAD / HTTP/1.0\r\nHost:\ site5.local\r\nUser-Agent:\ haproxy/httpchk
219 http-request set-header X-Cache-Request-IP %[src]
220 http-request set-header Host site5.local220 http-request set-header Host site5.local
221 balance leastconn221 balance leastconn
222 server server_1 127.0.0.1:6084 check inter 2s rise 2 fall 60 maxconn 200222 server server_1 127.0.0.1:6084 check inter 2s rise 2 fall 60 maxconn 200
223223
224backend backend-site5224backend backend-site5
225 option httpchk HEAD / HTTP/1.0\r\nHost:\ site5.local\r\nUser-Agent:\ haproxy/httpchk
225 retry-on all-retryable-errors226 retry-on all-retryable-errors
226 option redispatch 1227 option redispatch 1
227 option httpchk HEAD / HTTP/1.0\r\nHost:\ site5.local\r\nUser-Agent:\ haproxy/httpchk
228 http-request set-header Host site5.local228 http-request set-header Host site5.local
229 balance leastconn229 balance leastconn
230 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200230 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
231231
232backend backend-site5-2232backend backend-site5-2
233 option httpchk HEAD / HTTP/1.0\r\nHost:\ site5.local\r\nUser-Agent:\ haproxy/httpchk
233 retry-on all-retryable-errors234 retry-on all-retryable-errors
234 option redispatch 1235 option redispatch 1
235 option httpchk HEAD / HTTP/1.0\r\nHost:\ site5.local\r\nUser-Agent:\ haproxy/httpchk
236 http-request set-header Host site5.local236 http-request set-header Host site5.local
237 balance leastconn237 balance leastconn
238 server server_1 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200238 server server_1 127.0.1.11:80 check inter 5s rise 2 fall 5 maxconn 200
239239
240backend backend-cached-site6-local240backend backend-cached-site6-local
241 option forwardfor
242 option httpchk HEAD / HTTP/1.0\r\nHost:\ site6.local\r\nUser-Agent:\ haproxy/httpchk241 option httpchk HEAD / HTTP/1.0\r\nHost:\ site6.local\r\nUser-Agent:\ haproxy/httpchk
242 http-request set-header X-Cache-Request-IP %[src]
243 http-request set-header Host site6.local243 http-request set-header Host site6.local
244 balance leastconn244 balance leastconn
245 server server_1 127.0.0.1:6085 check inter 2s rise 2 fall 60 maxconn 200245 server server_1 127.0.0.1:6085 check inter 2s rise 2 fall 60 maxconn 200
246246
247backend backend-site6-local247backend backend-site6-local
248 option httpchk HEAD / HTTP/1.0\r\nHost:\ site6.local\r\nUser-Agent:\ haproxy/httpchk
248 retry-on all-retryable-errors249 retry-on all-retryable-errors
249 option redispatch 1250 option redispatch 1
250 option httpchk HEAD / HTTP/1.0\r\nHost:\ site6.local\r\nUser-Agent:\ haproxy/httpchk
251 http-request set-header Host site6.local251 http-request set-header Host site6.local
252 balance leastconn252 balance leastconn
253 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(site6.local) check-sni site6.local verify required ca-file ca-certificates.crt253 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(site6.local) check-sni site6.local verify required ca-file ca-certificates.crt
254254
255backend backend-cached-site7-local255backend backend-cached-site7-local
256 option forwardfor
257 option httpchk HEAD / HTTP/1.0\r\nHost:\ site7.local\r\nUser-Agent:\ haproxy/httpchk256 option httpchk HEAD / HTTP/1.0\r\nHost:\ site7.local\r\nUser-Agent:\ haproxy/httpchk
257 http-request set-header X-Cache-Request-IP %[src]
258 http-request set-header Host site7.local258 http-request set-header Host site7.local
259 balance leastconn259 balance leastconn
260 server server_1 127.0.0.1:6086 check inter 2s rise 2 fall 60 maxconn 200260 server server_1 127.0.0.1:6086 check inter 2s rise 2 fall 60 maxconn 200
261261
262backend backend-site7-local262backend backend-site7-local
263 option httpchk HEAD / HTTP/1.0\r\nHost:\ site7.local\r\nUser-Agent:\ haproxy/httpchk
263 retry-on all-retryable-errors264 retry-on all-retryable-errors
264 option redispatch 1265 option redispatch 1
265 option httpchk HEAD / HTTP/1.0\r\nHost:\ site7.local\r\nUser-Agent:\ haproxy/httpchk
266 http-request set-header Host site7.local266 http-request set-header Host site7.local
267 balance leastconn267 balance leastconn
268 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200268 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
269269
270backend backend-cached-site8-local270backend backend-cached-site8-local
271 option forwardfor
272 option httpchk HEAD / HTTP/1.0\r\nHost:\ site8.local\r\nUser-Agent:\ haproxy/httpchk271 option httpchk HEAD / HTTP/1.0\r\nHost:\ site8.local\r\nUser-Agent:\ haproxy/httpchk
272 http-request set-header X-Cache-Request-IP %[src]
273 http-request set-header Host site8.local273 http-request set-header Host site8.local
274 balance leastconn274 balance leastconn
275 server server_1 127.0.0.1:6087 check inter 2s rise 2 fall 60 maxconn 200275 server server_1 127.0.0.1:6087 check inter 2s rise 2 fall 60 maxconn 200
276276
277backend backend-site8-local277backend backend-site8-local
278 option httpchk HEAD / HTTP/1.0\r\nHost:\ site8.local\r\nUser-Agent:\ haproxy/httpchk
278 retry-on all-retryable-errors279 retry-on all-retryable-errors
279 option redispatch 1280 option redispatch 1
280 option httpchk HEAD / HTTP/1.0\r\nHost:\ site8.local\r\nUser-Agent:\ haproxy/httpchk
281 http-request set-header Host site8.local281 http-request set-header Host site8.local
282 balance leastconn282 balance leastconn
283 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200283 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
284284
285backend backend-site8-local-2285backend backend-site8-local-2
286 option httpchk HEAD / HTTP/1.0\r\nHost:\ auth.site8.local\r\nUser-Agent:\ haproxy/httpchk
286 retry-on all-retryable-errors287 retry-on all-retryable-errors
287 option redispatch 1288 option redispatch 1
288 option httpchk HEAD / HTTP/1.0\r\nHost:\ auth.site8.local\r\nUser-Agent:\ haproxy/httpchk
289 http-request set-header Host auth.site8.local289 http-request set-header Host auth.site8.local
290 balance leastconn290 balance leastconn
291 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(auth.site8.local) check-sni auth.site8.local verify required ca-file ca-certificates.crt291 server server_1 127.0.1.10:443 check inter 5s rise 2 fall 5 maxconn 200 ssl sni str(auth.site8.local) check-sni auth.site8.local verify required ca-file ca-certificates.crt
292292
293backend backend-cached-site9-local293backend backend-cached-site9-local
294 option forwardfor
295 option httpchk HEAD / HTTP/1.0\r\nHost:\ site9.local\r\nUser-Agent:\ haproxy/httpchk294 option httpchk HEAD / HTTP/1.0\r\nHost:\ site9.local\r\nUser-Agent:\ haproxy/httpchk
295 http-request set-header X-Cache-Request-IP %[src]
296 http-request set-header Host site9.local296 http-request set-header Host site9.local
297 balance leastconn297 balance leastconn
298 server server_1 127.0.0.1:6088 check inter 2s rise 2 fall 60 maxconn 200298 server server_1 127.0.0.1:6088 check inter 2s rise 2 fall 60 maxconn 200
299299
300backend backend-site9-local300backend backend-site9-local
301 option httpchk HEAD / HTTP/1.0\r\nHost:\ site9.local\r\nUser-Agent:\ haproxy/httpchk
301 retry-on all-retryable-errors302 retry-on all-retryable-errors
302 option redispatch 1303 option redispatch 1
303 option httpchk HEAD / HTTP/1.0\r\nHost:\ site9.local\r\nUser-Agent:\ haproxy/httpchk
304 http-request set-header Host site9.local304 http-request set-header Host site9.local
305 balance leastconn305 balance leastconn
306 server server_1 127.0.1.15:80 check inter 1m rise 2 fall 5 maxconn 200306 server server_1 127.0.1.15:80 check inter 1m rise 2 fall 5 maxconn 200
diff --git a/tests/unit/files/content_cache_rendered_haproxy_test_output_srv_template.txt b/tests/unit/files/content_cache_rendered_haproxy_test_output_srv_template.txt
index 8d97a65..150724d 100644
--- a/tests/unit/files/content_cache_rendered_haproxy_test_output_srv_template.txt
+++ b/tests/unit/files/content_cache_rendered_haproxy_test_output_srv_template.txt
@@ -90,15 +90,15 @@ listen site1-local
90 default_backend backend-site1-local90 default_backend backend-site1-local
9191
92backend backend-cached-site1-local92backend backend-cached-site1-local
93 option forwardfor
94 option httpchk HEAD / HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk93 option httpchk HEAD / HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk
94 http-request set-header X-Cache-Request-IP %[src]
95 http-request set-header Host site1.local95 http-request set-header Host site1.local
96 balance leastconn96 balance leastconn
97 server server_1 127.0.0.1:6080 check inter 2s rise 2 fall 60 maxconn 40097 server server_1 127.0.0.1:6080 check inter 2s rise 2 fall 60 maxconn 400
9898
99backend backend-site1-local99backend backend-site1-local
100 option redispatch 1
101 option httpchk HEAD / HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk100 option httpchk HEAD / HTTP/1.0\r\nHost:\ site1.local\r\nUser-Agent:\ haproxy/httpchk
101 option redispatch 1
102 http-request set-header Host site1.local102 http-request set-header Host site1.local
103 balance leastconn103 balance leastconn
104 server-template server_1_ 2 _http._tcp.us.archive.ubuntu.com:80 resolvers dns init-addr last,libc,none check inter 5s rise 2 fall 5 maxconn 200104 server-template server_1_ 2 _http._tcp.us.archive.ubuntu.com:80 resolvers dns init-addr last,libc,none check inter 5s rise 2 fall 5 maxconn 200
diff --git a/tests/unit/files/haproxy_config_rendered_backends_stanzas_test_output.txt b/tests/unit/files/haproxy_config_rendered_backends_stanzas_test_output.txt
index 247c97d..ea47e02 100644
--- a/tests/unit/files/haproxy_config_rendered_backends_stanzas_test_output.txt
+++ b/tests/unit/files/haproxy_config_rendered_backends_stanzas_test_output.txt
@@ -16,9 +16,9 @@ backend backend-site2-local
16 server server_3 127.0.1.12:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt16 server server_3 127.0.1.12:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt
1717
18backend backend-site3-local18backend backend-site3-local
19 option forwardfor except 127.0.0.1
20 option forceclose
21 option httpchk HEAD / HTTP/1.0\r\nHost:\ site3.local\r\nUser-Agent:\ haproxy/httpchk19 option httpchk HEAD / HTTP/1.0\r\nHost:\ site3.local\r\nUser-Agent:\ haproxy/httpchk
20 option forwardfor except 127.0.0.1 192.168.1.1
21 option forceclose
22 http-request set-header Host site3.local22 http-request set-header Host site3.local
23 balance leastconn23 balance leastconn
24 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 20024 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
diff --git a/tests/unit/files/haproxy_config_rendered_test_output.txt b/tests/unit/files/haproxy_config_rendered_test_output.txt
index 290d918..1b15c14 100644
--- a/tests/unit/files/haproxy_config_rendered_test_output.txt
+++ b/tests/unit/files/haproxy_config_rendered_test_output.txt
@@ -122,9 +122,9 @@ backend backend-site2-local
122 server server_3 127.0.1.12:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt122 server server_3 127.0.1.12:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt
123123
124backend backend-site3-local124backend backend-site3-local
125 option forwardfor except 127.0.0.1
126 option forceclose
127 option httpchk HEAD / HTTP/1.0\r\nHost:\ site3.local\r\nUser-Agent:\ haproxy/httpchk125 option httpchk HEAD / HTTP/1.0\r\nHost:\ site3.local\r\nUser-Agent:\ haproxy/httpchk
126 option forwardfor except 127.0.0.1 192.168.1.1
127 option forceclose
128 http-request set-header Host site3.local128 http-request set-header Host site3.local
129 balance leastconn129 balance leastconn
130 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200130 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200
diff --git a/tests/unit/files/haproxy_config_rendered_test_output2.txt b/tests/unit/files/haproxy_config_rendered_test_output2.txt
index 7489f26..1009f68 100644
--- a/tests/unit/files/haproxy_config_rendered_test_output2.txt
+++ b/tests/unit/files/haproxy_config_rendered_test_output2.txt
@@ -122,9 +122,9 @@ backend backend-site2-local
122 server server_3 127.0.1.12:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt122 server server_3 127.0.1.12:443 check inter 5s rise 2 fall 5 maxconn 1024 ssl sni str(site2.local) check-sni site2.local verify required ca-file ca-certificates.crt
123123
124backend backend-site3-local124backend backend-site3-local
125 option forwardfor except 127.0.0.1
126 option forceclose
127 option httpchk HEAD / HTTP/1.0\r\nHost:\ site3.local\r\nUser-Agent:\ haproxy/httpchk125 option httpchk HEAD / HTTP/1.0\r\nHost:\ site3.local\r\nUser-Agent:\ haproxy/httpchk
126 option forwardfor except 127.0.0.1 192.168.1.1
127 option forceclose
128 http-request set-header Host site3.local128 http-request set-header Host site3.local
129 balance leastconn129 balance leastconn
130 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200130 server server_1 127.0.1.10:80 check inter 5s rise 2 fall 5 maxconn 200

Subscribers

People subscribed via source and target branches