blob: edff7f16c40f6b2e7693a3688d6af4add19c4430 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
[Unit]
Description=MeshBay Node — P2P file host, streaming, and chat
Documentation=https://meshbay.org/docs
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=%i
Group=%i
# Per-user service: systemctl enable --now meshbay-node@$USER
WorkingDirectory=%h
# Secrets: MESHBAY_PASSWORD (hub login), MESHBAY_UNLOCK_KEY (keystore)
EnvironmentFile=-%h/.config/meshbay/node.env
ExecStart=/usr/bin/meshbay-node --config %h/.config/meshbay/node.toml
Restart=on-failure
RestartSec=10
TimeoutStopSec=30
# Data: chat DBs, indexes — default ~/.local/share/meshbay/
StateDirectory=meshbay
# Security hardening
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ReadWritePaths=%h/.config/meshbay %h/.local/share/meshbay
# Groups' shared_dir paths must be added to ReadWritePaths if outside ~
[Install]
WantedBy=default.target
|