Add default api base

main
clerie 1 year ago
parent fe09b75db9
commit ad0351e9ab
  1. 6
      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"] = "http://[::1]:9090"
if "UPTIMESTATUS_SETTINGS" in os.environ:
app.config.from_envvar('UPTIMESTATUS_SETTINGS')
from .views import app

Loading…
Cancel
Save