Skip to content

Commit

Permalink
replace werkzeug with waitress
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoblitt committed Apr 29, 2024
1 parent 311f433 commit c76edf1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gnocpush/gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from flask import Flask, request, jsonify
from gnocpush import Pusher
from prometheus_flask_exporter import PrometheusMetrics
from waitress import serve

app = Flask(__name__)
app.config['MAX_CONTENT_LENGTH'] = 4 * 1024 * 1024 # 4 MB
Expand Down Expand Up @@ -58,7 +59,7 @@ def main():
global yeeter
yeeter = Pusher(config)

app.run(port=8080, host="0.0.0.0")
serve(app, host='0.0.0.0', port=8080)


if __name__ == '__main__':
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ dependencies = [
"prometheus-flask-exporter==0.23.0",
"python-dateutil",
"requests",
"waitress",
]

[build-system]
Expand Down

0 comments on commit c76edf1

Please sign in to comment.