32 lines
793 B
Desktop File
32 lines
793 B
Desktop File
[Unit]
|
|
Description=NotebookLlama Backend API
|
|
After=network.target docker.service
|
|
Requires=docker.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=michael_clervi
|
|
Group=michael_clervi
|
|
WorkingDirectory=/opt/sandbox-notebookllamalm-nextjs/backend
|
|
Environment="PATH=/home/michael_clervi/.local/bin:/usr/local/bin:/usr/bin:/bin"
|
|
|
|
# Load environment variables from .env file
|
|
EnvironmentFile=/opt/sandbox-notebookllamalm-nextjs/backend/.env
|
|
|
|
# Start command (polling endpoints filtered in main.py)
|
|
ExecStart=/home/michael_clervi/.local/bin/uv run uvicorn src.api.main:app --host 0.0.0.0 --port 9000
|
|
|
|
# Restart behavior
|
|
Restart=always
|
|
RestartSec=10
|
|
|
|
# Logging
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
SyslogIdentifier=notebookllama-backend
|
|
|
|
# Security
|
|
NoNewPrivileges=true
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|