[Unit] Description=libbui.vinnymac.dev - static origin (loopback) StartLimitIntervalSec=0 ConditionPathExists=%h/.local/share/libbui-web/current/site/index.html [Service] Type=simple # The same node update.sh checks candidates with. ExecStart=/usr/bin/node %h/.local/share/libbui-web/current/server.mjs Environment=HOST=127.0.0.1 PORT=5179 Environment=LIBBUI_WEB_ROOT=%h/.local/share/libbui-web/current/site Restart=always RestartSec=5 TimeoutStopSec=15 NoNewPrivileges=true PrivateTmp=true ProtectSystem=strict # Keys, tokens and tunnel credentials stay out of reach; only the site is visible. ProtectHome=tmpfs BindReadOnlyPaths=%h/.local/share/libbui-web PrivateDevices=true ProtectKernelTunables=true ProtectKernelModules=true ProtectKernelLogs=true ProtectControlGroups=true ProtectClock=true ProtectHostname=true RestrictNamespaces=true RestrictRealtime=true RestrictSUIDSGID=true SystemCallArchitectures=native SystemCallFilter=@system-service RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX LockPersonality=true UMask=0077 MemoryMax=256M TasksMax=64 [Install] WantedBy=default.target