Skip to content

Instantly share code, notes, and snippets.

@eksiscloud
Last active July 2, 2020 17:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eksiscloud/6f62731c6a8d035b04035c0237c605bb to your computer and use it in GitHub Desktop.
Save eksiscloud/6f62731c6a8d035b04035c0237c605bb to your computer and use it in GitHub Desktop.
Varnish: custom header a la cheshire cat (ascii art)
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