uptime-status/uptimestatus/__init__.py
2021-05-15 14:45:52 +02:00

14 lines
257 B
Python

#!/usr/bin/env python3
from flask import Flask
import os
app = Flask(__name__)
app.config["PROMETHEUS_API_BASE"] = "http://[::1]:9090"
if "UPTIMESTATUS_SETTINGS" in os.environ:
app.config.from_envvar('UPTIMESTATUS_SETTINGS')
from .views import app