Add www-apps/healthchecks and its dependencies:
www-apps/healthchecks dev-python/statsd dev-python/requests-oauthlib dev-python/oauthlib dev-python/fido2 dev-python/cron-descriptor dev-python/apprise
This commit is contained in:
parent
3ec318fe9c
commit
4bf6278ce0
12 changed files with 371 additions and 0 deletions
23
www-apps/healthchecks/files/healthchecks-monitor.service
Normal file
23
www-apps/healthchecks/files/healthchecks-monitor.service
Normal file
|
@ -0,0 +1,23 @@
|
|||
[Unit]
|
||||
Description=Healthchecks.io alerting process
|
||||
Requires=network-online.target
|
||||
After=network-online.target healthchecks-server.service
|
||||
|
||||
[Service]
|
||||
User=healthchecks
|
||||
Group=healthchecks
|
||||
WorkingDirectory=/usr/share/healthchecks
|
||||
PrivateDevices=true
|
||||
ProtectHome=true
|
||||
ProtectSystem=full
|
||||
PrivateDevices=true
|
||||
ProtectKernelTunables=true
|
||||
ProtectControlGroups=true
|
||||
|
||||
ExecStart=/usr/bin/python3 -u ./manage.py sendalerts --no-threads
|
||||
|
||||
Restart=always
|
||||
RestartSec=20
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
23
www-apps/healthchecks/files/healthchecks-server.service
Normal file
23
www-apps/healthchecks/files/healthchecks-server.service
Normal file
|
@ -0,0 +1,23 @@
|
|||
[Unit]
|
||||
Description=Healthchecks.io application server
|
||||
Requires=network-online.target
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
User=healthchecks
|
||||
Group=healthchecks
|
||||
WorkingDirectory=/usr/share/healthchecks
|
||||
PrivateDevices=true
|
||||
ProtectHome=true
|
||||
ProtectSystem=full
|
||||
PrivateDevices=true
|
||||
ProtectKernelTunables=true
|
||||
ProtectControlGroups=true
|
||||
|
||||
ExecStart=/usr/bin/gunicorn --pythonpath . --bind 127.0.0.1:3004 --log-level debug hc.wsgi
|
||||
|
||||
Restart=always
|
||||
RestartSec=20
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
28
www-apps/healthchecks/files/local_settings.py
Normal file
28
www-apps/healthchecks/files/local_settings.py
Normal file
|
@ -0,0 +1,28 @@
|
|||
DATABASES = {
|
||||
"default": {
|
||||
"ENGINE": "django.db.backends.postgresql",
|
||||
"NAME": "healthchecksdb"
|
||||
}
|
||||
}
|
||||
|
||||
SECRET_KEY = "__RANDOM__"
|
||||
DEBUG = True
|
||||
ALLOWED_HOSTS = ["127.0.0.1"]
|
||||
REGISTRATION_OPEN = False
|
||||
TIME_ZONE = "Europe/Prague"
|
||||
SITE_ROOT = "https://ping.example.com"
|
||||
SITE_NAME = "Example Healthchecks"
|
||||
PING_ENDPOINT = SITE_ROOT + "/ping/"
|
||||
APPRISE_ENABLED = False
|
||||
MSTEAMS_ENABLED = False
|
||||
MATTERMOST_ENABLED = True
|
||||
OPSGENIE_ENABLED = False
|
||||
PD_ENABLED = False
|
||||
PROMETHEUS_ENABLED = False
|
||||
SLACK_ENABLED = False
|
||||
SPIKE_ENABLED = False
|
||||
TELEGRAM_BOT_NAME = "BotName"
|
||||
TELEGRAM_TOKEN = "BotToken"
|
||||
VICTOROPS_ENABLED = False
|
||||
WEBHOOKS_ENABLED = True
|
||||
ZULIP_ENABLED = False
|
Loading…
Add table
Add a link
Reference in a new issue