Self-Hosted and changing listen address and port and start at boot #807
Replies: 2 comments 2 replies
-
Hello @NightHawkATL, Healthchecks is a web application, written using the Django web framework. To run it in production, you need few additional components:
For the hosted service, I use uwsgi as the WSGI server, nginx as the reverse proxy, and systemd to start services automatically. |
Beta Was this translation helpful? Give feedback.
-
I'll think about publishing sample systemd service files somewhere. For now, here are the service files I'm using. The webapp code is at Systemd service for running uwsgi: [Unit]
Description=healthchecks web server
After=network-online.target
Requires=network-online.target
[Service]
Slice=machine.slice
Restart=always
RestartSec=20
StartLimitInterval=10
StartLimitBurst=5
User=www-data
Group=www-data
ExecStart=/usr/bin/uwsgi-core /app/uwsgi.ini
PrivateDevices=true
ProtectHome=true
ProtectSystem=full
[Install]
WantedBy=multi-user.target
[uwsgi]
strict
master
die-on-term
uwsgi-socket = /tmp/healthchecks.sock
harakiri = 28
post-buffering = 16192
processes = 4
auto-procname
enable-threads
threads = 1
chdir = /app
plugin = python3
module = hc.wsgi:application
thunder-lock
disable-write-exception
disable-logging Systemd service for running sendalerts: [Unit]
Description=sendalerts
After=network-online.target
Wants=network-online.target
[Service]
Slice=machine.slice
Restart=always
RestartSec=20
StartLimitInterval=10
StartLimitBurst=5
User=www-data
Group=www-data
SyslogIdentifier=sendalerts
ExecStart=/usr/bin/python3 -u /app/manage.py sendalerts --no-threads
PrivateDevices=true
ProtectHome=true
ProtectSystem=full
[Install]
WantedBy=multi-user.target |
Beta Was this translation helpful? Give feedback.
-
I have looked through all of the issues that could match the above keywords and have not found a solution. I am looking to do the following:
I have looked through all of settings.py and and even tried to locate a few other settings files and realize that the setting is probably in the database but don't want to break it.
I would also like to have all of the options that the cloud-hosted version has with integrations shown and also loading the images for the badges.
I would lie to have some assistance in where to find any settings for what is listed above please.
Beta Was this translation helpful? Give feedback.
All reactions