aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fifconfig.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/fifconfig.py b/fifconfig.py
index 6ff8d17..3dae327 100644
--- a/fifconfig.py
+++ b/fifconfig.py
@@ -22,12 +22,13 @@
# Documentation: see README.md
from flask import Flask, request, jsonify, url_for
+import os
app = Flask(__name__)
try:
- app.config.from_pyfile('fifconfig.conf')
+ app.config.from_pyfile(os.environ['FIFCONFIG_CONF'])
except:
- pass
+ app.config.from_pyfile('fifconfig.conf')
def _make_dict_safe_for_text(response):
""" Mostly for converting the silly x-forwarded-for ImmutableList so that it does not show that class name. """
bgstack15