Files
Autoparts-DB/systemd/nexus-pos.service
consultoria-as 9b88b8ba4c
Some checks failed
CI / lint-and-test (3.11) (push) Has been cancelled
CI / lint-and-test (3.13) (push) Has been cancelled
chore(systemd): add FACTURAPI_USER_KEY to nexus-pos.service
2026-07-08 08:07:46 +00:00

28 lines
976 B
Desktop File

[Unit]
Description=Nexus POS (Gunicorn)
After=network.target postgresql.service redis-server.service
[Service]
Type=simple
User=root
WorkingDirectory=/home/Autopartes/pos
ExecStart=/usr/local/bin/gunicorn -c gunicorn.conf.py "app:create_app()"
Restart=always
RestartSec=5
Environment=PYTHONUNBUFFERED=1
Environment=PYTHONPATH=/home/Autopartes/pos
Environment=MASTER_DB_URL=postgresql://postgres@/nexus_autoparts
Environment=TENANT_DB_URL_TEMPLATE=postgresql://postgres@/nexus_autoparts
Environment=POS_JWT_SECRET=nexus-pos-jwt-secret-12345678901234567890123456789012
Environment=REDIS_URL=redis://localhost:6379/0
Environment=REDIS_ENABLED=true
Environment=MEILI_URL=http://localhost:7700
Environment=MEILI_ENABLED=true
Environment=QWEN_API_URL=https://api.nan.builders/v1
Environment=QWEN_API_KEY=sk-Yr0e-Y4F4j1NuuK8xdbxIA
Environment=QWEN_MODEL=qwen3.6
Environment=FACTURAPI_USER_KEY=sk_user_wdqvggGbg8RHN7mqLhogM2y7K1PXGT9PSDLguaLsM9
[Install]
WantedBy=multi-user.target