[Unit] Description=lchat links redirector (11ch.at short links) After=network-online.target Wants=network-online.target [Service] # No env file: unlike home/push this holds no secrets and no database — just # an in-memory, TTL-bounded verification cache (see linkscmd.go). ExecStart=/opt/lchat/lchat links run --socket /run/lchat/links.sock Restart=always RestartSec=1 # --- hardening (see docs/instance-router.md § Hardening) --- User=lchat Group=lchat CapabilityBoundingSet= NoNewPrivileges=yes ProtectSystem=strict ProtectHome=yes ReadWritePaths=/run/lchat PrivateTmp=yes PrivateDevices=yes ProtectClock=yes ProtectHostname=yes ProtectKernelTunables=yes ProtectKernelModules=yes ProtectKernelLogs=yes ProtectControlGroups=yes ProtectProc=invisible RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX RestrictNamespaces=yes RestrictRealtime=yes RestrictSUIDSGID=yes LockPersonality=yes MemoryDenyWriteExecute=yes SystemCallFilter=@system-service SystemCallErrorNumber=EPERM SystemCallArchitectures=native MemoryMax=256M TasksMax=256 [Install] WantedBy=multi-user.target