- 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
41 lines
2.1 KiB
Desktop File
41 lines
2.1 KiB
Desktop File
[Unit]
|
|
Description=Nexus Instance Manager (Control Central)
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=root
|
|
WorkingDirectory=/home/Autopartes/manager
|
|
ExecStart=/usr/local/bin/gunicorn -w 2 --threads 4 -b 0.0.0.0:5003 "app:create_app()"
|
|
Restart=always
|
|
RestartSec=5
|
|
|
|
# ─── Local Paths ───────────────────────────────────────────────────────────
|
|
Environment=PYTHONUNBUFFERED=1
|
|
Environment=PYTHONPATH=/home/Autopartes/manager:/home/Autopartes/pos
|
|
Environment=POS_DIR=/home/Autopartes/pos
|
|
|
|
# ─── Database (UPDATE FOR REMOTE VM) ───────────────────────────────────────
|
|
# If manager runs on a separate VM, change localhost to the IP of the
|
|
# PostgreSQL server (e.g. 192.168.10.91).
|
|
Environment=MASTER_DB_URL=postgresql://postgres@localhost/nexus_autoparts
|
|
Environment=TENANT_DB_URL_TEMPLATE=postgresql://postgres@localhost/{db_name}
|
|
|
|
# ─── Remote Nexus Server IP ────────────────────────────────────────────────
|
|
# Set to the IP/hostname of the server running POS/Dashboard/Quart/Redis.
|
|
# Leave as 127.0.0.1 if manager runs on the same server.
|
|
Environment=NEXUS_SERVER_HOST=127.0.0.1
|
|
|
|
# ─── Security (CHANGE THIS) ────────────────────────────────────────────────
|
|
Environment=MANAGER_JWT_SECRET=change-me-to-a-random-64-char-hex-string
|
|
Environment=INTERNAL_API_KEY=c58db62766712e618a881dbe8de580960812e57a069ef92c9dd00e7e69158cb2
|
|
|
|
# ─── POS Internal API (for WhatsApp bridge orchestration) ──────────────────
|
|
Environment=POS_INTERNAL_URL=http://192.168.10.91:5001
|
|
|
|
# ─── Redis (optional, health check only) ───────────────────────────────────
|
|
Environment=REDIS_URL=redis://127.0.0.1:6379/0
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|