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?
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!
@carlwgeorge Enjoy :) https://caddyserver.com/docs/http.geoip