diff options
Diffstat (limited to 'ykps.py')
-rw-r--r-- | ykps.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -31,7 +31,6 @@ sys.path.append("/srv/ykps/fbfp/") from fbfp import make_bp as make_fbfp from fbfp import fbfpc_init from fbfp import db as fbfp_db -from fbfp import nope response_t: typing.TypeAlias = typing.Union[werkzeug.Response, flask.Response, str] @@ -68,6 +67,10 @@ else: MY_TOKENS = [l.strip("\n") for l in fd if l] +class nope(Exception): + pass + + app = flask.Flask(__name__) app.wsgi_app = werkzeug.middleware.proxy_fix.ProxyFix( # type: ignore app.wsgi_app, x_for=1, x_proto=1, x_host=1, x_prefix=1 |