mirror of
https://github.com/FAUSheppy/atlantis-event-dispatcher
synced 2026-03-10 01:31:44 +01:00
fix: set new app name & make db configurable
This commit is contained in:
@@ -22,8 +22,8 @@ from sqlalchemy.sql.expression import func
|
|||||||
|
|
||||||
OPENSEARCH_HEADER_SEPERATOR = ","
|
OPENSEARCH_HEADER_SEPERATOR = ","
|
||||||
HOST = "icinga.atlantishq.de"
|
HOST = "icinga.atlantishq.de"
|
||||||
app = flask.Flask("Signal Notification Gateway")
|
app = flask.Flask("Atlantis Notification Gateway & Dispatcher")
|
||||||
app.config["SQLALCHEMY_DATABASE_URI"] = "sqlite:///sqlite.db"
|
app.config["SQLALCHEMY_DATABASE_URI"] = os.environ.get("DB_URL") or "sqlite:///sqlite.db"
|
||||||
db = SQLAlchemy(app)
|
db = SQLAlchemy(app)
|
||||||
|
|
||||||
BAD_DISPATCH_ACCESS_TOKEN = "Invalid or missing dispatch-access-token parameter in URL"
|
BAD_DISPATCH_ACCESS_TOKEN = "Invalid or missing dispatch-access-token parameter in URL"
|
||||||
|
|||||||
Reference in New Issue
Block a user