[Unit] Description=Nexus Instance Manager (Control Central) After=network.target postgresql.service [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 Environment=PYTHONUNBUFFERED=1 Environment=PYTHONPATH=/home/Autopartes/manager:/home/Autopartes/pos Environment=MASTER_DB_URL=postgresql://postgres@localhost/nexus_autoparts Environment=TENANT_DB_URL_TEMPLATE=postgresql://postgres@localhost/{db_name} Environment=MANAGER_JWT_SECRET=change-me-to-a-random-64-char-hex-string Environment=POS_DIR=/home/Autopartes/pos Environment=REDIS_URL=redis://localhost:6379/0 [Install] WantedBy=multi-user.target