47 lines
1.3 KiB
Desktop File
47 lines
1.3 KiB
Desktop File
[Unit]
|
|
Description=Knowledge Verification Service
|
|
Documentation=https://forge.nasty.sh/lilith/lilith-platform
|
|
After=network.target redis.service
|
|
Wants=redis.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=lilith
|
|
Group=lilith
|
|
WorkingDirectory=/var/home/lilith/Code/@applications/@ml/knowledge-platform/features/api/service
|
|
|
|
# Environment
|
|
Environment=NODE_ENV=production
|
|
Environment=KV_API_PORT=41233
|
|
Environment=REDIS_URL=redis://localhost:26384
|
|
Environment=DOCS_PATH=/var/home/lilith/Code/@projects/@lilith/lilith-platform/docs
|
|
|
|
# Secrets loaded from environment file
|
|
EnvironmentFile=-/var/home/lilith/Code/@projects/@lilith/lilith-platform/vault/knowledge-verification.env
|
|
|
|
# Process configuration
|
|
ExecStart=/usr/bin/node dist/index.js
|
|
Restart=always
|
|
RestartSec=5
|
|
TimeoutStopSec=30
|
|
|
|
# Security hardening
|
|
NoNewPrivileges=true
|
|
ProtectSystem=strict
|
|
ProtectHome=false
|
|
PrivateTmp=true
|
|
ReadOnlyPaths=/var/home/lilith/Code/@projects/@lilith/lilith-platform/docs
|
|
ReadWritePaths=/var/home/lilith/Code/@applications/@ml/knowledge-platform/features/api/service/logs
|
|
|
|
# Resource limits
|
|
# Note: Increase to 4G if using GPU acceleration (LLAMA_GPU_LAYERS=999)
|
|
MemoryMax=1G
|
|
CPUQuota=100%
|
|
|
|
# Logging
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
SyslogIdentifier=knowledge-verification
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|