These ship in a public repo; topology narration in nginx, systemd, firewalld, and env templates is gratuitous. Keep the config terse — directives speak for themselves. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
33 lines
682 B
Desktop File
33 lines
682 B
Desktop File
[Unit]
|
|
Description=moments ingestion worker
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=moments
|
|
Group=moments
|
|
EnvironmentFile=/etc/moments/worker.env
|
|
ExecStart=/usr/local/bin/moments-worker
|
|
Restart=on-failure
|
|
RestartSec=10s
|
|
|
|
NoNewPrivileges=true
|
|
ProtectSystem=strict
|
|
ProtectHome=true
|
|
PrivateTmp=true
|
|
PrivateDevices=true
|
|
ProtectKernelTunables=true
|
|
ProtectKernelModules=true
|
|
ProtectControlGroups=true
|
|
RestrictRealtime=true
|
|
RestrictSUIDSGID=true
|
|
LockPersonality=true
|
|
MemoryDenyWriteExecute=true
|
|
SystemCallArchitectures=native
|
|
ReadWritePaths=/var/lib/moments
|
|
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|