From 8412ee1c8edef3ae5f04087f31b75e12c746de67 Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Wed, 16 Mar 2022 14:44:00 -0400 Subject: load FIFCONFIG_CONF from env --- fifconfig.py | 5 +++-- 1 file 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. """ -- cgit