Add sample config and systemd service file to beszel-agent.
Signed-off-by: Manuel Friedli <manuel@fritteli.ch>
This commit is contained in:
parent
9a2481f449
commit
4a8857379e
7 changed files with 77 additions and 6 deletions
30
app-metrics/beszel-agent/files/beszel-agent.env
Normal file
30
app-metrics/beszel-agent/files/beszel-agent.env
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
# This is a sample config file. Adjust to your needs.
|
||||
# See https://beszel.dev/guide/environment-variables#agent for all available
|
||||
# variables.
|
||||
|
||||
# The default data directory. Only change this if you know what you're
|
||||
# doing.
|
||||
BESZEL_AGENT_DATA_DIR=/var/lib/beszel-agent
|
||||
|
||||
# The URL of your hub
|
||||
BESZEL_AGENT_HUB_URL=http://your-beszel-hub.example.com
|
||||
|
||||
# Public SSH key(s) used for authetication. Provided in hub.
|
||||
# Either specify the key(s) directly, ...
|
||||
# BESZEL_AGENT_KEY=
|
||||
|
||||
# ... or refer to a file containing the key(s). Uncomment one of the options.
|
||||
# BESZEL_AGENT_KEY_FILE=
|
||||
|
||||
# The network port to listen on. Can be port or host:port
|
||||
BESZEL_AGENT_LISTEN=127.0.0.1:45876
|
||||
|
||||
# The log level. One of debug, info, warn, error
|
||||
BESZEL_AGENT_LOG_LEVEL=info
|
||||
|
||||
# The WebSocket registration token. Provided in hub.
|
||||
# Either specify the token directly, ...
|
||||
# BESZEL_AGENT_TOKEN=
|
||||
|
||||
# ... or refer to a file containing the token. Uncomment one of the options.
|
||||
# BESZEL_AGENT_TOKEN_FILE=
|
||||
29
app-metrics/beszel-agent/files/beszel-agent.service
Normal file
29
app-metrics/beszel-agent/files/beszel-agent.service
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
[Unit]
|
||||
Description=Beszel Agent Service
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/beszel-agent
|
||||
EnvironmentFile=/etc/beszel-agent/beszel-agent
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
StateDirectory=beszel-agent
|
||||
|
||||
User=beszel-agent
|
||||
Group=beszel
|
||||
|
||||
# Security/sandboxing settings
|
||||
KeyringMode=private
|
||||
LockPersonality=yes
|
||||
NoNewPrivileges=yes
|
||||
ProtectClock=yes
|
||||
ProtectHome=read-only
|
||||
ProtectHostname=yes
|
||||
ProtectKernelLogs=yes
|
||||
ProtectSystem=strict
|
||||
RemoveIPC=yes
|
||||
RestrictSUIDSGID=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Loading…
Add table
Add a link
Reference in a new issue