Skip to content

Instantly share code, notes, and snippets.

@simonkuhn
simonkuhn / geo.vcl
Last active August 31, 2025 04:31
Fastly VCL for geoip json output
sub vcl_recv {
#FASTLY recv
# We don't do other methods
if (req.method != "GET") {
return(error);
}
# Handle IPv4 or IPv6 provided in url path (nothing extraneous allowed, perform basic matching)
if (req.url.path ~ "^/([a-f0-9:.]+)$") {
set client.geo.ip_override = re.group.1;
@virgilwashere
virgilwashere / _Mautic_nginx_config_files.md
Last active April 18, 2025 12:40 — forked from magnetikonline/README.md
Mautic nginx config files