petit ajustement pour render

This commit is contained in:
cedrick2711
2026-07-28 15:52:17 -04:00
parent 4e9d93d8c8
commit 9b05c7e770
+2 -2
View File
@@ -21,9 +21,9 @@ app = create_app()
if __name__ == '__main__': if __name__ == '__main__':
from waitress import serve from waitress import serve
port = int(os.getenv('PORT', 5000)) port = int(os.getenv('PORT', 10000))
threads = int(os.getenv('WAITRESS_THREADS', multiprocessing.cpu_count() * 2 + 1)) threads = int(os.getenv('WAITRESS_THREADS', multiprocessing.cpu_count() * 2 + 1))
host = os.getenv('HOST', '127.0.0.1') # Bind to localhost by default (Nginx reverse proxy) host = os.getenv('HOST', '0.0.0.0') # Bind to localhost by default (Nginx reverse proxy)
print(f'Starting Waitress server on {host}:{port} with {threads} threads') print(f'Starting Waitress server on {host}:{port} with {threads} threads')
serve( serve(