Files
kindexr/deploy/kindexr.service
T
enki 1b7b70426c feat: Phase 0 bootstrap — kindexr boots, migrates, serves /health
- config: koanf-based loading (defaults → YAML → KINDEXR_ env vars)
- db: embedded SQLite migrations with BEGIN/END-aware statement splitter
- server: chi router, GET /health returns JSON stats
- cmd/kindexr: graceful SIGTERM shutdown
- cmd/kindexr-cli: stub
- deploy: systemd unit, example config, nginx snippet
- all packages covered by race-clean tests
2026-05-16 18:45:15 -07:00

35 lines
699 B
Desktop File

[Unit]
Description=kindexr — Nostr-native Torznab indexer
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=kindexr
Group=kindexr
ExecStart=/usr/local/bin/kindexr --config /etc/kindexr/config.yaml
Restart=on-failure
RestartSec=5
# Security hardening
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
ReadWritePaths=/var/lib/kindexr
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectControlGroups=true
RestrictSUIDSGID=true
LockPersonality=true
MemoryDenyWriteExecute=true
RestrictRealtime=true
RestrictNamespaces=true
StandardOutput=journal
StandardError=journal
SyslogIdentifier=kindexr
[Install]
WantedBy=multi-user.target