add new status page to icinga

This commit is contained in:
Franzi 2023-09-10 09:48:20 +02:00
parent b38bc67a60
commit 563735d31a
Signed by: kunsi
GPG key ID: 12E3D2136B818350
5 changed files with 107 additions and 43 deletions

View file

@ -0,0 +1,16 @@
[Unit]
Description=icinga2-statuspage
After=network.target
Requires=postgresql.service
[Service]
User=www-data
Group=www-data
Environment=APP_CONFIG=/opt/icinga2-statuspage/config.json
WorkingDirectory=/opt/icinga2-statuspage/src
ExecStart=/usr/bin/gunicorn statuspage:app --workers 4 --max-requests 1200 --max-requests-jitter 50 --log-level=info --bind=127.0.0.1:22110
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target