Caddy: geoip functionality

Created on 10 Aug 2017  路  4Comments  路  Source: caddyserver/caddy

I'm currently using nginx and its geoip module to add the X-Forwarded-For-Latitude and X-Forwarded-For-Longitude headers to requests before passing them to my app server. I love Caddy and its automatic https integration, and would like to use it instead of nginx. However, I don't see any geoip functionality mentioned in the Caddy documentation. Does this exist and I'm missing it? If not, can it be added?

plugin question

All 4 comments

Hey Carl, thanks for asking! It'll need to be a plugin, which anyone can write. (In fact, I've written geolocation stuff in Go before using MaxMind's GeoIP database.) (In fact again, the http.ipfilter plugin does this but for a different purpose.) It's fairly straightforward. Here are the instructions: https://github.com/mholt/caddy/wiki/Extending-Caddy

I've added a link to your request at https://caddy.community/t/requested-plugins-ideas-for-developers/127

@carlwgeorge Take a look at #2066 :)

Thanks for the follow up Matt!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dafanasiev picture dafanasiev  路  3Comments

lorddaedra picture lorddaedra  路  3Comments

SteffenDE picture SteffenDE  路  3Comments

billop picture billop  路  3Comments

mschneider82 picture mschneider82  路  3Comments