README gains API, CLI and configuration sections and the PDF range/grep/question limits; the skill covers PDF busy and failure results; dist/sift.service matches the Nix unit (MemoryMax=1G, secret.env); the example config drops the unused [upstreams] block; stale task comments in api/pdf.go. Gate overridden by the owner: TestGrepLimits (given test) exceeds its 1 s budget under -race on this host. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
44 lines
995 B
Desktop File
44 lines
995 B
Desktop File
[Unit]
|
|
Description=sift LLM-oriented fetch and search
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=sift
|
|
Group=sift
|
|
ExecStart=/usr/local/bin/sift serve -listen 127.0.0.1:8890 -config /etc/sift/config.toml
|
|
WorkingDirectory=/var/lib/sift
|
|
Restart=on-failure
|
|
RestartSec=5s
|
|
|
|
NoNewPrivileges=true
|
|
ProtectSystem=strict
|
|
ProtectHome=true
|
|
PrivateTmp=true
|
|
PrivateDevices=true
|
|
ProtectKernelTunables=true
|
|
ProtectKernelModules=true
|
|
ProtectControlGroups=true
|
|
ProtectHostname=true
|
|
ProtectClock=true
|
|
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
|
|
RestrictNamespaces=true
|
|
RestrictRealtime=true
|
|
RestrictSUIDSGID=true
|
|
LockPersonality=true
|
|
MemoryDenyWriteExecute=true
|
|
MemoryMax=1G
|
|
SystemCallArchitectures=native
|
|
SystemCallFilter=@system-service
|
|
SystemCallFilter=~@privileged
|
|
CapabilityBoundingSet=
|
|
AmbientCapabilities=
|
|
ReadWritePaths=/var/lib/sift
|
|
ConfigurationDirectory=sift
|
|
StateDirectory=sift
|
|
EnvironmentFile=-/var/lib/sift/secret.env
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|