Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support configuration via environment variables #19

Merged
merged 1 commit into from
Jan 14, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions config.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
# -*- encoding: utf-8 -*-
import os

listen_host = '0.0.0.0' # defaults to "all interfaces"
listen_port = 8081
opsreport_start = '01/01/2013 12:00:00 AM'
timezone = "America/New_York"
es_url = 'http://localhost:9200'
es_index = 'anthracite'
timezone = os.environ.get('ANTHRACITE_TZ', 'America/New_York')
es_url = os.environ.get('ES_URL', 'http://localhost:9200')
es_index = os.environ.get('ES_INDEX', 'anthracite')

# list of tuples: first value of the tuple is a tag that you recommend/make
# extra visible on the forms, and 2nd value is a user friendly explanation.
Expand Down