Ability to add HAProxy configs per site
Bug #1976176 reported by
Haw Loeung
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Content Cache Charm |
Fix Released
|
High
|
Haw Loeung |
Bug Description
Hi,
Sometimes, it's useful to add additional HAProxy configs per site, e.g. to restrict certain URLs, (in backend backend-cached-*). We should have the ability to do this in the sites config.
Example of such a config:
| backend backend-
| acl restricted_page query -m reg ^q=............$
| http-request deny if restricted_page
Related branches
~hloeung/content-cache-charm:haproxy-config
- Paul Collins: Approve (lgtm)
- Canonical IS Reviewers: Pending requested
-
Diff: 106 lines (+16/-5)7 files modifiedreactive/content_cache.py (+3/-5)
tests/unit/files/config_test_config.txt (+3/-0)
tests/unit/files/content_cache_rendered_haproxy_test_output.txt (+2/-0)
tests/unit/files/content_cache_rendered_haproxy_test_output_auto_maxconns.txt (+2/-0)
tests/unit/files/content_cache_rendered_haproxy_test_output_load_balancing_algorithm.txt (+2/-0)
tests/unit/files/content_cache_rendered_haproxy_test_output_processes_and_threads.txt (+2/-0)
tests/unit/files/content_cache_rendered_haproxy_test_output_processes_and_threads_haproxy2.txt (+2/-0)
description: | updated |
Changed in content-cache-charm: | |
status: | New → Triaged |
importance: | Undecided → High |
assignee: | nobody → Haw Loeung (hloeung) |
status: | Triaged → In Progress |
Changed in content-cache-charm: | |
status: | In Progress → Fix Committed |
Changed in content-cache-charm: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.