Compare commits
1 Commits
ad0351e9ab
...
072536a04c
Author | SHA1 | Date | |
---|---|---|---|
072536a04c |
@ -1,9 +1,13 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
from flask import Flask
|
from flask import Flask
|
||||||
|
import os
|
||||||
|
|
||||||
app = Flask(__name__)
|
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
|
from .views import app
|
||||||
|
Loading…
Reference in New Issue
Block a user