diff --git a/down b/down deleted file mode 100644 index 15c479c..0000000 --- a/down +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/python3 -import configparser -from waitress import serve -from flask import Flask, render_template, request, url_for, flash, redirect, session, make_response, send_from_directory, stream_with_context, Response, request - -config = configparser.ConfigParser() -config.read("config.ini") - -HOST = config["config"]["HOST"] -PORT = config["config"]["PORT"] -SECRET_KEY = config["config"]["SECRET_KEY"] - -app = Flask(__name__, static_folder=None) -app.config["SECRET_KEY"] = SECRET_KEY - -@app.errorhandler(404) -def main(e): - return render_template("down.html"), 503 - -@app.route("/grid.svg") -def staticgrid(): - return Response(""" - - -""", mimetype="image/svg+xml") - -if __name__ == "__main__": - print("[INFO] Server started") - serve(app, host=HOST, port=PORT) - print("[INFO] Server stopped") \ No newline at end of file