1# /etc/systemd/system/snowbound-site.service: snowbound.paperclover.net, the hosted web build
2# and the codes' pages, behind a TLS proxy on this machine (README.md). Options go on
3# ExecStart, or as SNOWBOUND_SITE_* in Environment.
4[Unit]
5Description=Snowbound web build and Live Share links
6After=network-online.target
7Wants=network-online.target
8
9[Service]
10ExecStart=/usr/local/bin/snowbound-site --listen 127.0.0.1:23593 --root /srv/snowbound/web --crashes /var/lib/snowbound-site --trust-forwarded true
11StateDirectory=snowbound-site
12Restart=always
13RestartSec=2
14DynamicUser=yes
15TasksMax=200
16MemoryMax=256M
17NoNewPrivileges=yes
18ProtectSystem=strict
19ReadOnlyPaths=/srv/snowbound/web
20ProtectHome=yes
21PrivateTmp=yes
22PrivateDevices=yes
23ProtectKernelTunables=yes
24ProtectKernelModules=yes
25ProtectControlGroups=yes
26RestrictAddressFamilies=AF_INET AF_INET6
27RestrictNamespaces=yes
28LockPersonality=yes
29MemoryDenyWriteExecute=yes
30SystemCallArchitectures=native
31CapabilityBoundingSet=
32
33[Install]
34WantedBy=multi-user.target