caddy-geoip
caddy-geoip copied to clipboard
Not working
Sorry, I don't have any details, but it's not working with any Caddy version...
Thanks for the report I will see soon
I reported to caddy: https://github.com/mholt/caddy/issues/2441
@scippio I checked and all work's fine. I don't understand your Caddyfile try it make simple, like this:
YOU_DOMAIN.COM {
geoip /Downloads/GeoLite2-City.mmdb
proxy / localhost:3000 {
header_upstream Country-Code {geoip_country_code}
}
}
You using proxy .. it's not simple as my Caddyfile... Try it without proxy like me (I'm using your github example (1)):
YOU_DOMAIN.COM {
tls off
root /srv/html
geoip /Downloads/GeoLite2-City.mmdb
header Country-Code {geoip_country_code}
}
What version of Caddy you use? I tried every versions... and compile source and never worked.. + nor official Caddy from there https://caddyserver.com/download not working with geoip. I'll try it with proxy like you and report result.