Pēteris Caune
0f6099b311
Fix fetchstatus.py to handle SITE_ROOT with a path
...
Fixes : #1107
2024-12-19 09:35:31 +02:00
Pēteris Caune
a3766734ae
Update settings.py to use f-strings
2024-12-19 09:14:38 +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
c51582eb93
Bump package versions
2024-12-18 13:51:47 +02:00
Pēteris Caune
03710eec88
Update CHANGELOG
2024-12-18 13:43:30 +02:00
Pēteris Caune
281ce65504
isort
2024-12-18 13:42:18 +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
bc5354b05b
Switch off pip's verbose output
2024-12-18 08:51:29 +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
90ab7e0180
Switch to a newer tonistiigi/binfmt image
...
cc: #1103
2024-12-17 17:59:45 +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
fa2c3732cc
Remove "pip install --upgrade pip"
...
The base image already comes with an up-to-date pip
2024-12-17 14:46:06 +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
3769bf3ede
Fix mypy warning
2024-12-16 15:55:36 +02:00
Pēteris Caune
ca0d639c6b
Update Slack notification template to include failure reason
...
cc: #1069
2024-12-16 15:43:25 +02:00
Pēteris Caune
f41e1e52ea
Clean up transports.Matrix.get_url()
2024-12-16 15:24:16 +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
28d1ce056e
Increase pip's verbosity to debug slow cryptography builds
2024-12-16 15:13:08 +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
14bcc84a78
Bump action versions
2024-12-16 08:38:16 +02:00
Pēteris Caune
67dce23f56
Update Dockerfile to install rust using profile "minimal"
...
This should speed up the build a little bit.
2024-12-15 19:58:37 +02:00
Pēteris Caune
0fc4452366
Remove the /var/lib/docker as-ramdisk workaround
...
This was needed to work around a bug in QEMU [1],
let's see if we still need this workaround.
[1] https://github.com/rust-lang/cargo/issues/8719
2024-12-15 17:27:08 +02:00
Pēteris Caune
558b832016
Upgrade pycurl to 7.45.4
2024-12-13 17:03:25 +02:00
Pēteris Caune
4a2775c3fe
Update changelog for v3.8.1 release
2024-12-13 13:44:25 +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
850cab6fa6
Update Dockerfile to use Python 3.13.1
...
cc: #1101
2024-12-13 10:06:51 +02:00
Pēteris Caune
04ebbeb0bd
Update CHANGELOG for v3.8 release
2024-12-09 15:15:29 +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
a2c7259d1b
Fix redirects after login when using a path in SITE_ROOT
...
Fixes : #382
cc: #1091
2024-12-09 12:35:02 +02:00
Pēteris Caune
0ee3f03baf
Fix redirect to login when SITE_ROOT contains a path
...
cc: #382 , #1091
2024-12-09 12:20:09 +02:00
Pēteris Caune
b685e66b71
Add a workaround for reverse() omitting script prefix when on thread
...
https://code.djangoproject.com/ticket/35985
cc: #1091
2024-12-09 11:53:53 +02:00
dependabot[bot]
3f2ff2adf3
Bump django from 5.1.3 to 5.1.4 ( #1099 )
...
Bumps [django](https://github.com/django/django ) from 5.1.3 to 5.1.4.
- [Commits](https://github.com/django/django/compare/5.1.3...5.1.4 )
---
updated-dependencies:
- dependency-name: django
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-09 08:33:31 +02:00
Pēteris Caune
2ff68cb597
Update docker/uwsgi.ini to handle subpath in SITE_ROOT
...
cc: #1091
2024-12-04 11:00:53 +02:00
Pēteris Caune
7836da6448
Update settings.py to allow subpath in SITE_ROOT
...
If SITE_ROOT contains a subpath
(e.g., "http://example.org/healthchecks "), settings.py now adjusts
FORCE_SCRIPT_NAME and STATIC_URL.
Also, hc.lib.urls.absolute_reverse() now recognizes subpath in
SITE_ROOT, and makes sure it does not show up twice in the
generated URLs.
cc: #1091
2024-12-04 10:37:52 +02:00
Pēteris Caune
22268c1484
Move absolute URL construction to hc.lib.urls.absolute_reverse()
...
absolute_reverse() works the same as django.urls.reverse()
except it generates absolute URLs (starting with http[s]://)
2024-12-03 17:24:27 +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
5e848f4976
Add index on api_flip (owner_id, created)
...
This helps queries in hc.front.views._get_events,
especially for checks that are flipping between up and down
states a lot.
2024-12-03 10:37:01 +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
4a618cd7e9
Fix elf -> self
2024-12-02 11:32:53 +02:00
Jacek Kowalski
8485c758eb
Fix Trello integration (token regexp too specific) ( #1094 )
...
* Fix Trello configuration failing with HTTP 400
* Add additional tests regarding Trello token
2024-12-02 11:31:02 +02:00