Last active
July 2, 2020 17:55
-
-
Save eksiscloud/6f62731c6a8d035b04035c0237c605bb to your computer and use it in GitHub Desktop.
Varnish: custom header a la cheshire cat (ascii art)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sub headers_x { | |
## Add after vcl 4.1; | |
## include "/etc/varnish/ext/cheshire_cat.vcl"; | |
## | |
## Add after sub vcl_deliver { | |
## call header_smiley; | |
sub header_smiley { | |
set resp.http.xa = "⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀.'\⠀⠀⠀/`."; | |
set resp.http.xb = "⠀⠀⠀⠀⠀⠀⠀⠀⠀.'.-.`-'.-.`."; | |
set resp.http.xc = "⠀⠀⠀⠀..._:⠀⠀⠀.-.⠀.-.⠀⠀⠀:_..."; | |
set resp.http.xd = "⠀⠀.'⠀⠀⠀⠀'-.(o )⠀(o ).-'⠀⠀⠀⠀`."; | |
set resp.http.xe = "⠀:⠀⠀_⠀⠀⠀⠀_⠀_`~(_)~`_⠀_⠀⠀⠀⠀_⠀⠀:"; | |
set resp.http.xf = ":⠀⠀/:⠀⠀⠀'⠀.-=_⠀⠀⠀_=-.⠀`⠀⠀⠀;\⠀⠀:"; | |
set resp.http.xg = ":⠀⠀⠀:|-.._⠀⠀'⠀⠀⠀⠀⠀`⠀⠀_..-|:⠀⠀⠀:"; | |
set resp.http.xh = "⠀:⠀⠀⠀`:|⠀|`:-:-.-:-:'|⠀|:'⠀⠀⠀:"; | |
set resp.http.xi = "⠀⠀`.⠀⠀⠀`.|⠀|⠀|⠀|⠀|⠀|⠀|.'⠀⠀⠀.'"; | |
set resp.http.xj = "⠀⠀⠀⠀`.⠀⠀⠀`-:_|⠀|⠀|_:-'⠀⠀⠀.'"; | |
set resp.http.xk = "⠀⠀⠀⠀⠀⠀`-._⠀⠀⠀````⠀⠀⠀⠀_.-'"; | |
set resp.http.xl = "⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀``-------''"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment