feat: Make debian packages
This commit is contained in:
parent
efa1a2326b
commit
e2023b4230
4 changed files with 100 additions and 5 deletions
3
debian/gatus/DEBIAN/postinst
vendored
Executable file
3
debian/gatus/DEBIAN/postinst
vendored
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
adduser --group --system gatus
|
||||
mkdir -p /var/lib/gatus
|
||||
chown -R gatus: /var/lib/gatus
|
||||
13
debian/gatus/etc/gatus/gatus.yaml
vendored
Normal file
13
debian/gatus/etc/gatus/gatus.yaml
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
web:
|
||||
port: 8081
|
||||
storage:
|
||||
type: "sqlite"
|
||||
path: "/var/lib/gatus/gatus.sqlite"
|
||||
maximum-number-of-results: 1000
|
||||
endpoints:
|
||||
- name: localhost
|
||||
url: "icmp://127.0.0.1"
|
||||
group: pings
|
||||
interval: 10s
|
||||
conditions:
|
||||
- "[CONNECTED] == true"
|
||||
20
debian/gatus/etc/systemd/system/gatus.service
vendored
Normal file
20
debian/gatus/etc/systemd/system/gatus.service
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
[Unit]
|
||||
Description=Gatus
|
||||
Documentation=https://github.com/TwiN/gatus
|
||||
After=network.target network-online.target
|
||||
Requires=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
User=gatus
|
||||
Group=gatus
|
||||
Environment=GATUS_CONFIG_PATH=/etc/gatus/gatus.yaml
|
||||
ExecStart=/usr/local/bin/gatus
|
||||
TimeoutStopSec=5s
|
||||
LimitNOFILE=1048576
|
||||
PrivateTmp=true
|
||||
ProtectSystem=full
|
||||
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Loading…
Reference in a new issue