[Unit] Description=moments read-only HTTP API Documentation=https://git.lair.cafe/grenade/moments After=network-online.target Wants=network-online.target [Service] Type=simple User=moments Group=moments EnvironmentFile=/etc/moments/api.env ExecStart=/usr/local/bin/moments-api Restart=on-failure RestartSec=5s # Hardening 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