23 lines
506 B
Desktop File
23 lines
506 B
Desktop File
[Unit]
|
|
Description=VoIdeaAI API Service
|
|
After=network.target postgresql.service
|
|
Wants=postgresql.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=voidea
|
|
Group=voidea
|
|
WorkingDirectory=/opt/voidea
|
|
EnvironmentFile=/opt/voidea/.env
|
|
Environment=PYTHONUNBUFFERED=1
|
|
LimitNOFILE=65536
|
|
ExecStart=/opt/voidea/venv/bin/uvicorn app.main:app --host 0.0.0.0 --port 8020 --workers 2
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
Restart=on-failure
|
|
RestartSec=10
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|