Commit graph

1377 commits

Author SHA1 Message Date
Pēteris Caune
ff36755345
Update settings.py to populate ALLOWED_HOSTS from SITE_ROOT
The default value for ALLOWED_HOSTS was "*". The default value
now is the domain part of SITE_ROOT.
2024-12-19 12:31:40 +02:00
Pēteris Caune
45b8bd64df
Simplify hosting under subpath
Instead of using SCRIPT_NAME / FORCE_SCRIPT_NAME, PATH_INFO
and their associated issues, update urls.py to add the subpath
to all routes. This allows us to get rid of several hacks:

* the uwsgi.ini magic which parses SITE_ROOT, sets SCRIPT_NAME
  and fixes PATH_INFO
* set_script_prefix() in sendalerts
* chopping the subpath off an URL in hc.accounts.views._allow_redirect

The idea comes from @apollo13
in https://code.djangoproject.com/ticket/35985#comment:5

cc: #1091
2024-12-19 09:04:45 +02:00
Pēteris Caune
0fb011464f
Update SMS notification template to include failure reason
cc: #1069
2024-12-18 12:31:22 +02:00
Pēteris Caune
aba1161597
Update RocketChat notification template to include failure reason
cc: #1069
2024-12-18 11:51:16 +02:00
Pēteris Caune
22695bfdde
Update Spike notification template to include failure reason
cc: #1069
2024-12-18 09:39:56 +02:00
Pēteris Caune
3fa80a8800
Update PagerTree notification template to include failure reason
cc: #1069
2024-12-18 09:13:05 +02:00
Pēteris Caune
fd0d58e96d
Update Zulip notification template to include failure reason
cc: #1069
2024-12-18 09:00:56 +02:00
Pēteris Caune
46c51787bb
Update PushBullet notification template to include failure reason
cc: #1069
2024-12-18 08:50:58 +02:00
Pēteris Caune
c28ae32261
Update VictorOps notification template to include failure reason
cc: #1069
2024-12-17 16:01:51 +02:00
Pēteris Caune
dcc5d7a7c4
Update Gotify notification template to include failure reason
cc: #1069
2024-12-17 15:22:19 +02:00
Pēteris Caune
d8d8d280ca
Update OpsGenie notification template to include failure reason
cc: #1069
2024-12-17 10:09:55 +02:00
Pēteris Caune
f390d6eece
Update MS Teams Workflows notification to include failure reason
cc: #1069
2024-12-17 09:50:29 +02:00
Pēteris Caune
aff41f6688
Update ntfy notification template to include failure reason
cc: #1069
2024-12-17 08:58:31 +02:00
Pēteris Caune
4628deb395
Update PagerDuty notification template to include failure reason
cc: #1069
2024-12-17 08:46:35 +02:00
Pēteris Caune
cd70e88c52
Update Pushover notification template to include failure reason
cc: #1069
2024-12-17 08:23:01 +02:00
Pēteris Caune
4808f35a4c
Update Signal notification template to include failure reason
cc: #1069
2024-12-16 17:20:28 +02:00
Pēteris Caune
645efa5ce4
Update Telegram notification template to include failure reason
cc: #1069
2024-12-16 15:20:45 +02:00
Pēteris Caune
ff5b060e86
Move repeating flip reason descriptions to Flip.reason_long() 2024-12-16 14:35:36 +02:00
Pēteris Caune
e09fd28836
Improve Matrix notifications (include tags, period, last ping type etc.)
cc: #1069
2024-12-13 13:34:41 +02:00
Pēteris Caune
ae074a7b2a
Update SITE_ROOT docs and CHANGELOG
cc: #1091
2024-12-09 15:13:25 +02:00
Pēteris Caune
35eb727ebd
Fix the note about SCRIPT_NAME
SITE_ROOT should *not* contain the subpath, I had it wrong previously.

cc: #1091
2024-12-03 12:48:58 +02:00
Pēteris Caune
205baf56b9
Add a note about serving on subpath
Fixes: #1091
2024-12-03 09:20:10 +02:00
Pēteris Caune
cb7e53677d
Increase ntfy.sh topic max length to 64 2024-11-25 11:16:15 +02:00
Pēteris Caune
8ee0664801
Remove unneeded newlines 2024-11-24 14:39:29 +02:00
Pēteris Caune
534d6973c4
Reduce the generated HTML size of the checks table
... by removing class="indicator-cell" and using
:first-child in CSS to target it instead.
2024-11-22 14:21:48 +02:00
Pēteris Caune
2c4719ecc3
Add backrest in the "Third-Party Resources" page
Fixes: #1087
2024-11-22 12:55:32 +02:00
Pēteris Caune
9af904297d
Rearrange channels in the integrations page, "Add More" section 2024-11-19 11:03:49 +02:00
Pēteris Caune
06d7c61297
Fix kerning issue in SVG badge on Windows 10 2024-11-15 16:49:26 +02:00
Pēteris Caune
62b10be5fe
Implement "no matching checks" message when searching/filtering
(instead of showing a table with a header row and no data rows)
2024-11-15 12:11:18 +02:00
Pēteris Caune
0c8bba95ac
Hide filter buttons on mobile 2024-11-14 14:29:19 +02:00
Pēteris Caune
b328c8739f
Reduce the number of Check.get_status() calls 2024-11-14 13:33:21 +02:00
Pēteris Caune
7c8d43414f
Implement filtering by status on the server side 2024-11-14 12:27:31 +02:00
Pēteris Caune
9ce8249123
Move "Add Check" button to the top, implement filtering by status 2024-11-14 11:51:37 +02:00
Pēteris Caune
27ecb40c88
Mark the project name textbox as required in the "Add Project" dialog 2024-11-13 14:27:15 +02:00
Pēteris Caune
5f3bbfd940
De-emphasize the unsubscribe link in email notifications
I received a report about multiple cases of users clicking
on the unsubscribe link by accident. The unsubscribe action
does not have a confirmation step so the users get instantly
unsubscribed. I do not want to add a confirmation step, so
instead I'm making a few small changes to hopefully reduce
the chances of accidental clicks:

- The footer text now has a "You are receiving this email because..."
  blurb to separate the footer a little more from the primary
  content
- The unsubscribe link is now a shorter single word: "Unsubscribe",
  making it a smaller click target
- the footer now uses a slightly smaller font than the rest of
  the email message

The people looking for the unsubscribe link should still be able
to easily find it, but hopefully it should now draw less
"accidental attention".
2024-11-12 14:51:05 +02:00
Pēteris Caune
5c67c94654
Add a missing article 2024-11-08 11:31:09 +02:00
Pēteris Caune
5912758a8a
Update email alerts to mention failure reason
cc: #1069
2024-11-08 11:20:44 +02:00
Pēteris Caune
0a4412a493
Fix js to enable "pause" button when a check is paused but started 2024-10-23 14:32:06 +03:00
Pēteris Caune
374f034bf9
Update check's status text to show how long it has been running
In check's details page, we have a "Current Status" section.
It shows an icon, a status text, and a table with downtime
statistics. When the check has received a start signal, the icon
also has an animated progress indicator under it.

With this change, the status text will also indicate the running
state and the elapsed time. Example:

"Currently running, started 3 minutes ago".
2024-10-23 14:14:44 +03:00
Pēteris Caune
e1ccf5f86a
Add Elestio to the 3rd party resources page
Fixes: #1062
2024-10-10 13:19:40 +03:00
Pēteris Caune
7dc13d897f
Add a hint in ntfy form
Fixes: #1059
2024-10-10 10:23:48 +03:00
Pēteris Caune
e49b5f8fbd
Remove LINE Notify onboarding form
LINE Notify is shutting down on Apr 1, 2025:
https://notify-bot.line.me/closing-announce

I'm removing the onboarding form so people don't set up new
integrations that will stop working in 5 months.

The code for sending LINE Notify notifications still exists,
and the existing integrations will continue to work (until LINE
Notify stops working).
2024-10-08 09:13:03 +03:00
Pēteris Caune
5a43e8f197
Fix formatting 2024-10-02 09:44:03 +03:00
Pēteris Caune
20fb599ad9
Add note about local_settings in SECURE_PROXY_SSL_HEADER docs 2024-10-02 09:36:20 +03:00
Pēteris Caune
13f92b90ef
Update settings.py to read SECURE_PROXY_SSL_HEADER from env vars
And add it to docs.

And add a system check to make sure it, if set, is a tuple
with 2 elements.

cc: #851
2024-10-01 19:13:26 +03:00
Pēteris Caune
342423ee93
Update the "Accessing Administration Panel" section 2024-10-01 16:30:57 +03:00
Pēteris Caune
6ed9de4d01
Fix whitespace 2024-10-01 16:15:39 +03:00
Pēteris Caune
69a6588121
Update "Database Cleanup" in docs 2024-10-01 15:57:23 +03:00
Pēteris Caune
e73d7a1ece
Remove pruneflips management command
Flips are now cleaned up automatically during pinging.
2024-10-01 15:33:56 +03:00
Pēteris Caune
d77b96a40f
Update the uuid/slug switching links to not lose currently selected tags 2024-09-30 10:29:30 +03:00