Skip to content

rewardli/geoip-sinatra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

geoip-sinatra

A simple Sinatra-based geoip server. It uses the free Maxmind geolite city database with the geoip ruby gem. The database is updated about once a month. The service runs here:

How to deploy to Heroku

The app is hosted on Heroku and run using Phusion Passenger.

git remote add heroku [email protected]:perkhub-geoip.git git push heroku master

How to update the database

rake geoip:update

Commit and push to Heroku.

Basic Authentication

Set a username and password with the environment variables AUTH_USERNAME and AUTH_PASSWORD.

Acknowledgements

Part of the code was copied and distilled from https://github.com/JackDanger/geoip_server

About

A simple Sinatra-based geoip server.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages