25 lines
577 B
Plaintext
25 lines
577 B
Plaintext
|
[Unit]
|
||
|
Description=Uptime-Kuma - A free and open source uptime monitoring solution
|
||
|
Documentation=https://github.com/louislam/uptime-kuma
|
||
|
After=network.target
|
||
|
|
||
|
[Service]
|
||
|
Type=simple
|
||
|
User={{ uptimekuma_user }}
|
||
|
Environment=HOST=0.0.0.0
|
||
|
Environment=PORT={{ uptimekuma_port }}
|
||
|
WorkingDirectory={{ uptimekuma_home }}
|
||
|
ExecStart=/usr/bin/npm run start-server
|
||
|
Restart=on-failure
|
||
|
|
||
|
# Hardening to improve security
|
||
|
ProtectControlGroups=true
|
||
|
ProtectHome=true
|
||
|
ProtectSystem=strict
|
||
|
PrivateMounts=true
|
||
|
PrivateTmp=true
|
||
|
ReadWritePaths={{ uptimekuma_home }}
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|