[Unit] Description=Metacrypt web UI server Documentation=https://git.wntrmute.dev/kyle/metacrypt After=network-online.target metacrypt.service Wants=network-online.target Requires=metacrypt.service [Service] Type=simple User=metacrypt Group=metacrypt ExecStart=/usr/local/bin/metacrypt-web --config /srv/metacrypt/metacrypt.toml ExecReload=/bin/kill -HUP $MAINPID Restart=on-failure RestartSec=5 # Security hardening NoNewPrivileges=true ProtectSystem=strict ProtectHome=true PrivateTmp=true PrivateDevices=true ProtectKernelTunables=true ProtectKernelModules=true ProtectControlGroups=true RestrictSUIDSGID=true RestrictNamespaces=true LockPersonality=true MemoryDenyWriteExecute=true RestrictRealtime=true # Allow read access to config and certs ReadOnlyPaths=/srv/metacrypt # Limit file descriptor count LimitNOFILE=65535 # Logging StandardOutput=journal StandardError=journal SyslogIdentifier=metacrypt-web [Install] WantedBy=multi-user.target