Pēteris Caune
1b0d0eac6a
Enable retry for SMTPDataError
3 years ago
Pēteris Caune
642d436ae9
Add absolute_site_logo_url template tag
This commit adds a {% absolute_site_logo_url %} template tag.
The tag emits an absolute url pointing to either
SITE_LOGO_URL or to the fallback picture.
The tag is used in base email template, in slack message
template, and in "Add MS Teams" page.
This commit also fixes a couple instances where absolute URLs
were constructed like so:
{% site_root %}/docs/
This would result in incorrect links if Healthchecks is not
running at webserver's root. The correct way is:
{% site_root %}{% url 'hc-docs' %}
Finally, this commit removes stuff/logo.svg and
stuff/logo-full.svg. Selfhosted sites should not use the
official Healthchecks.io logos, so no point keeping them around
there.
3 years ago
Pēteris Caune
484c0befbc
Fix email template to use SITE_LOGO_URL (with img/logo.png fallback)
Fixes : #550
3 years ago
Pēteris Caune
f3af13654e
Refactor email sending functions to allow customization
For example, if we need to use a custom From: address,
we can now do:
m = make_message("template-name", recipient, ctx)
m.from_email = "...." # customize here
send(m)
3 years ago
Pēteris Caune
fca600659d
Improve hc.lib.emails.send()
- add optional `from_email` argument
- add test cases that exercise the retry loop
3 years ago
Pēteris Caune
d243f502d3
Fix off-by-one-month error in monthly reports, downtime columns
Fixes : #539
3 years ago
Pēteris Caune
df44ee58c0
Add an option for weekly reports (in addition to monthly)
4 years ago
Pēteris Caune
5979204691
Fix downtime summary to handle months when the check didn't exist
Fixes : #472
4 years ago
Pēteris Caune
b9997137a6
Bump croniter version to 1.0.2
4 years ago
Pēteris Caune
524d1a7375
Implement badge mode (up/down vs up/late/down) selector
Fixes #282
4 years ago
Pēteris Caune
fb79948759
Update the "Change Email" function to use confirmation codes
4 years ago
Pēteris Caune
ed6b15bfa9
Update the "Set Password" function to use confirmation codes
4 years ago
Pēteris Caune
e3aedd3b03
Add require_sudo_mode decorator
Planning to use it for sensitive operations (add/remove security keys),
change email, change password, close account.
The decorator sends a six-digit confirmation code to user's email
and renders a form for entering it back. If the user enters the
correct code, the decorators sets a sudo=active marker in
user's session, valid for 30 minutes.
4 years ago
Pēteris Caune
d5502c50ca
Add retries to the the email sending logic
When sending email using Django's default email
backend (SMTP), and if there is a network issue, the backend
can throw SMTPServerDisconnected.
This commit adds a retry logic which retries sending the
email two times when SMTPServerDisconnected is thrown.
4 years ago
Pēteris Caune
d05691f86f
SMS and phone calls now have separate "limit reached" email templates.
4 years ago
Pēteris Caune
461ef5e088
Paused ping handling can be controlled via API. Fixes #376
4 years ago
Pēteris Caune
6ede17d93f
Cleanup and comments.
5 years ago
Pēteris Caune
57da17b8e2
Send an "Ownership Transfer Request" email notification.
5 years ago
Pēteris Caune
ccd30ac239
Stricter cron validation, reject schedules like "At midnight of February 31"
5 years ago
Pēteris Caune
cdad632082
Show sub-second durations with higher precision, 2 digits after decimal point. Fixes #321
5 years ago
Pēteris Caune
22d4d55340
Added support for Shields.io badges. cc: #304 , #305
5 years ago
Pēteris Caune
91c93b6a95
Add "Shell Commands" integration. Fixes #302
5 years ago
Pēteris Caune
8d81ea8f9d
Add "Shell Commands" integration. Fixes #302
5 years ago
Pēteris Caune
9cbd3bfc5a
In monthly reports, no downtime stats for the current month (month has just started)
5 years ago
Pēteris Caune
66a6de70c0
Send email notification when monthly SMS sending limit is reached. Fixes #292
5 years ago
Pēteris Caune
2bb769f7bb
Send monthly reports on 1st of every month, not randomly during the month
5 years ago
Pēteris Caune
b7320b1b69
In monthly report, show months in ascending order. Cleanup.
5 years ago
Pēteris Caune
b74e56a273
Experimental: show the number of outages and total downtime in monthly reports. ( #104 )
5 years ago
Pēteris Caune
cdfc9840a7
Source formatted with Black
6 years ago
Pēteris Caune
945a66ab0a
Management command for sending inactive account notifications
6 years ago
Pēteris Caune
954ca4576b
Improved logic for displaying job execution times in log. Fixes #219
6 years ago
Pēteris Caune
b3e290b284
Show elapsed times in ping log
6 years ago
Pēteris Caune
887c4d534a
add "minLength" support to the jsonschema validator
6 years ago
Pēteris Caune
b9a81ad382
Add "List-Unsubscribe" header to alert and report emails
6 years ago
Pēteris Caune
ef6e1870d9
Preliminary Django 2 support
7 years ago
Pēteris Caune
9bc0f1b82a
Dropping Python 2 support
7 years ago
Pēteris Caune
39bc12e351
Invoices to email.
7 years ago
Pēteris Caune
1b7d4f6f3e
Adding "Overall status" badge.
7 years ago
Pēteris Caune
2393dad09e
Users can update their email addresses. Fixes #105
7 years ago
Pēteris Caune
dec006890c
Badges can now return either SVG or JSON
7 years ago
Pēteris Caune
eece7c7551
Handle "required" keyword.
8 years ago
Pēteris Caune
0d24d650f2
"X-Bounce-Url" header in email messages. An API endpoint to handle bounce notifications. ( #112 )
8 years ago
Pēteris Caune
f767cf59aa
ctx can contain database query objects, evaluate them before passing off to a thread
8 years ago
Pēteris Caune
b63f19f415
Simplify: remove djmail and django-ses-backend dependencies.
8 years ago
Pēteris Caune
8d956b3365
email template from Litmus. CSS already inlined, so dropping premailer dependency.
8 years ago
Pēteris Caune
b93336a44d
API support for cron syntax
8 years ago
Pēteris Caune
52cd2a9c8e
API rejects too long check names
8 years ago
Pēteris Caune
56168b17d0
Usability tweaks in api_check_changelist admin view.
8 years ago
Pēteris Caune
c5568b6dd1
Move json validation code to a separate file, add support for array and enum, add tests.
8 years ago
Pēteris Caune
965e32884b
Django 1.10
8 years ago