caddy-geoip icon indicating copy to clipboard operation
caddy-geoip copied to clipboard

Not working

Open scippio opened this issue 6 years ago • 4 comments

Sorry, I don't have any details, but it's not working with any Caddy version...

scippio avatar Jan 16 '19 14:01 scippio

Thanks for the report I will see soon

aablinov avatar Jan 16 '19 21:01 aablinov

I reported to caddy: https://github.com/mholt/caddy/issues/2441

scippio avatar Jan 24 '19 12:01 scippio

@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}
    }
}

aablinov avatar Jan 24 '19 21:01 aablinov

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.

scippio avatar Jan 25 '19 15:01 scippio