eleven / ocho Public

Clone
git clone https://amadan.net/eleven/ocho

Plain git — no account needed to clone.

Download

Download this file

1[Unit]
2Description=lchat links redirector (11ch.at short links)
3After=network-online.target
4Wants=network-online.target
5
6[Service]
7# No env file: unlike home/push this holds no secrets and no database — just
8# an in-memory, TTL-bounded verification cache (see linkscmd.go).
9ExecStart=/opt/lchat/lchat links run --socket /run/lchat/links.sock
10Restart=always
11RestartSec=1
12
13# --- hardening (see docs/instance-router.md § Hardening) ---
14User=lchat
15Group=lchat
16CapabilityBoundingSet=
17NoNewPrivileges=yes
18ProtectSystem=strict
19ProtectHome=yes
20ReadWritePaths=/run/lchat
21PrivateTmp=yes
22PrivateDevices=yes
23ProtectClock=yes
24ProtectHostname=yes
25ProtectKernelTunables=yes
26ProtectKernelModules=yes
27ProtectKernelLogs=yes
28ProtectControlGroups=yes
29ProtectProc=invisible
30RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
31RestrictNamespaces=yes
32RestrictRealtime=yes
33RestrictSUIDSGID=yes
34LockPersonality=yes
35MemoryDenyWriteExecute=yes
36SystemCallFilter=@system-service
37SystemCallErrorNumber=EPERM
38SystemCallArchitectures=native
39MemoryMax=256M
40TasksMax=256
41
42[Install]
43WantedBy=multi-user.target
44