mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-29 05:50:31 +08:00
Include some trivial sandboxing options in the provided service files as an example and lead users to `systemd-analyze security`. While being a trivial change and far from a secure service it is an improvement and may push downstream packagers and/or users to add even a bit of sandboxing. Signed-off-by: srestegosaurio <lcdt@disroot.org>
28 lines
784 B
Desktop File
28 lines
784 B
Desktop File
# When running radicle-node on a server, it should be run as a separate user.
|
|
# If your Radicle key is passphrase-protected, you will have to set the
|
|
# `RAD_PASSPHRASE` environment variable to the passphrase supplied during
|
|
# `rad auth`.
|
|
# Use `systemctl --user edit radicle-node.service` to add
|
|
#
|
|
# [Service]
|
|
# Environment=RAD_PASSPHRASE=snickerdoodle
|
|
|
|
[Unit]
|
|
Description=Radicle Node
|
|
After=network.target network-online.target
|
|
Requires=network-online.target
|
|
|
|
[Service]
|
|
ExecStart=/usr/bin/radicle-node --listen 0.0.0.0:8776 --force
|
|
Environment=RUST_LOG=info
|
|
KillMode=process
|
|
Restart=always
|
|
RestartSec=3
|
|
# Basic hardening options. For more please refer to `systemd-analyze security`.
|
|
PrivateTmp=true
|
|
ProtectHome=true
|
|
MemoryDenyWriteExecute=true
|
|
|
|
[Install]
|
|
WantedBy=default.target
|