Files
pyTorrent/app.py
Mateusz Gruszczyński 31bba1269d gunicorn
2026-05-04 10:43:31 +02:00

15 lines
414 B
Python

from pytorrent import create_app, socketio
from pytorrent.config import ALLOW_UNSAFE_WERKZEUG, DEBUG, HOST, PORT
app = create_app()
if __name__ == "__main__":
# Note: This entrypoint is kept for local development; production should use gunicorn via wsgi:app.
socketio.run(
app,
host=HOST,
port=PORT,
debug=DEBUG,
allow_unsafe_werkzeug=ALLOW_UNSAFE_WERKZEUG,
)