~sajoupa/content-cache-charm:lua-http-cache-purge

Last commit made on 2021-02-09
Get this branch:
git clone -b lua-http-cache-purge https://git.launchpad.net/~sajoupa/content-cache-charm
Only Laurent Sesquès can upload to this branch. If you are Laurent Sesquès please log in for upload directions.

Branch merges

Branch information

Name:
lua-http-cache-purge
Repository:
lp:~sajoupa/content-cache-charm

Recent commits

6575b10... by Laurent Sesquès

Add the package libnginx-mod-http-cache-purge to enable cache purging with Lua

9e1d668... by Haw Loeung

Back to X-Forwarded-For as some things expect it to be this (e.g. Moin

Reviewed-on: https://code.launchpad.net/~hloeung/content-cache-charm/+git/content-cache-charm/+merge/397710
Reviewed-by: Paul Collins <email address hidden>

2b3f15b... by Haw Loeung

Back to X-Forwarded-For as some things expect it to be this (e.g. Moin

e96904c... by Haw Loeung

Revert "Use 'http-check send hdr' instead of adding headers at end of httpchk version"

Reviewed-on: https://code.launchpad.net/~hloeung/content-cache-charm/+git/content-cache-charm/+merge/397708
Reviewed-by: Paul Collins <email address hidden>

0d24b87... by Haw Loeung

Revert "Use 'http-check send hdr' instead of adding headers at end of httpchk version"

This reverts commit 3bd2938698a7bdad5ada38ac84c635108749fc43.

3fcb042... by Haw Loeung

Use 'http-check send hdr' instead of adding headers at end of httpchk version

Reviewed-on: https://code.launchpad.net/~hloeung/content-cache-charm/+git/content-cache-charm/+merge/397703
Reviewed-by: Colin Misare <email address hidden>

3bd2938... by Haw Loeung

Use 'http-check send hdr' instead of adding headers at end of httpchk version

This fixes the warning about it:

| [WARNING] 038/222205 (17722) : parsing [/etc/haproxy/haproxy.cfg:94]: 'option httpchk' : hiding headers or body at the end of the version string is deprecated. Please, consider to use 'http-check send' directive instead.

ecc5578... by Haw Loeung

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

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

Reviewed-on: https://code.launchpad.net/~hloeung/content-cache-charm/+git/content-cache-charm/+merge/397698
Reviewed-by: Colin Misare <email address hidden>

9e2a612... by Haw Loeung

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

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

66c3a16... by Haw Loeung

Exclude 127.0.0.1 from X-Forward-For headers

Newer HAProxy, as seen with upgrade from 2.2.3 to 2.2.9, includes
127.0.0.1 in the X-Forward-For headers. This gets logged by Nginx.