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 trial-tunnel gateway (lchat try)
3After=network-online.target
4Wants=network-online.target
5
6[Service]
7# Optional overrides (LCHAT_TUNNEL_HOST/_DOMAIN/_SOCKET); absent file is fine —
8# the defaults (tunnel.11ch.at / 11ch.at / /run/lchat/tunnel.sock) are the fleet's.
9EnvironmentFile=-/data/tunnel.env
10ExecStart=/opt/lchat/lchat tunnel serve
11Restart=always
12RestartSec=1
13
14# --- hardening (see docs/instance-router.md § Hardening) ---
15User=lchat
16Group=lchat
17CapabilityBoundingSet=
18NoNewPrivileges=yes
19ProtectSystem=strict
20ProtectHome=yes
21ReadWritePaths=/data /run/lchat
22PrivateTmp=yes
23PrivateDevices=yes
24ProtectClock=yes
25ProtectHostname=yes
26ProtectKernelTunables=yes
27ProtectKernelModules=yes
28ProtectKernelLogs=yes
29ProtectControlGroups=yes
30ProtectProc=invisible
31RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
32RestrictNamespaces=yes
33RestrictRealtime=yes
34RestrictSUIDSGID=yes
35LockPersonality=yes
36MemoryDenyWriteExecute=yes
37SystemCallFilter=@system-service
38SystemCallErrorNumber=EPERM
39SystemCallArchitectures=native
40MemoryMax=256M
41TasksMax=256
42
43[Install]
44WantedBy=multi-user.target
45