diff --git a/uptimestatus/__init__.py b/uptimestatus/__init__.py index 990a2f4..4a65385 100644 --- a/uptimestatus/__init__.py +++ b/uptimestatus/__init__.py @@ -1,9 +1,13 @@ #!/usr/bin/env python3 from flask import Flask +import os app = Flask(__name__) -app.config.from_envvar('UPTIMESTATUS_SETTINGS') +app.config["PROMETHEUS_API_BASE"] = "https://[::1]:9090" + +if "UPTIMESTATUS_SETTINGS" in os.environ: + app.config.from_envvar('UPTIMESTATUS_SETTINGS') from .views import app