CIRCL / IP-ASN-history

IP-ASN-history is a server software to store efficiently the history of BGP announces and quickly lookup IP addresses origins
https://github.com/D4-project/IPASN-History
GNU Affero General Public License v3.0
45 stars 13 forks source link

Add Support configuration from environment variables. #3

Closed thomasf closed 9 years ago

thomasf commented 9 years ago

At least relevant for the web service. The requirements are guided by my docker containerisation project.

I'm thinking along the lines of changing

ipasn.hostname = 'redis'
ipasn.port=6379

To something along the lines of:

ipasn.hostname = os.environ.get('IPASN_REDIS_HOST', 'redis')
ipasn.port=os.environ.get('IPASN_REDIS_PORT', 6379)

Also adding this as an alternative to the configparser config file would make it easy to handle from a docker point of view..

If you find this idea useful I can submit a pull request.

thomasf commented 9 years ago

I'll just make a go port of everything