mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-09 14:48:08 -05:00
This commit updates the explorer web app to run on a Gunicorn-based WSGI server for testnet and mainnet rather than the built-in dev server. In doing so, it provides for improved scalability, reliability, integration with Nginx, and flexible run configuration. We’ve introduced a dedicated configuration file (gunicorn_config.py) allowing control over the number of worker processes and threads. By adjusting these values, we can handle more simultaneous requests, fine-tune performance based on CPU resources, and tweak other operational parameters to suit deployment needs. Update Summary: - Added gunicorn_config.py to configure bind address, workers, threads, pidfile, and logs - Updated the testnet and mainnet ports to run on 8000 instead of the 5000 dev port - Created wsgi.py to load and expose the Flask app via `create_app()` - Updated requirements.txt to include Gunicorn dependency - Modified makefile start-% target to start with Gunicorn for testnet/mainnet instead of the development server - Adjusted stop task to stop Gunicorn server when stopping the explorer - We updated the requirements.txt install to run quietly - Updated Makefile to export LOG_HOME so it can be accessed by gunicorn_config.py
5 lines
37 B
Plaintext
5 lines
37 B
Plaintext
flask[async]
|
|
Pygments
|
|
tomli
|
|
gunicorn
|