- Add MercadoLibre OAuth, listings, orders, webhooks and category search - New marketplace_external_bp.py, meli_service.py, marketplace_external_service.py - New marketplace_external.html/js with ML management UI - Inventory: bulk publish to ML with category autocomplete, listing type and shipping selectors - Inventory: new .btn--meli styles, select/label CSS fixes - WhatsApp bridge: rate limiting, 440/515/408 error handling, stale watchdog - DB migration v3.4_meli_integration.sql for marketplace_listings, orders, sync_queue - Add Celery tasks for ML sync and webhook processing - Sidebar: MercadoLibre navigation link
22 lines
539 B
Python
22 lines
539 B
Python
import multiprocessing
|
||
|
||
bind = "0.0.0.0:5001"
|
||
|
||
# gthread workers handle multiple concurrent requests per worker via threads.
|
||
# Ideal for I/O-bound Flask apps with DB queries.
|
||
# 4 workers × 4 threads = 16 concurrent requests.
|
||
workers = 8
|
||
threads = 4
|
||
worker_class = "gthread"
|
||
worker_connections = 1000
|
||
|
||
# Recycle workers after N requests to prevent memory leaks
|
||
max_requests = 1000
|
||
max_requests_jitter = 50
|
||
|
||
timeout = 120
|
||
keepalive = 5
|
||
accesslog = "/var/log/nexus-pos/access.log"
|
||
errorlog = "/var/log/nexus-pos/error.log"
|
||
loglevel = "info"
|