Commit graph

3239 commits

Author SHA1 Message Date
Pēteris Caune
2dd4994259
Fix fetchstatus.py (again) to handle SITE_ROOT with a path
cc: #1108
2024-12-20 11:38:33 +02:00
Amin Vakil
81869989fb
Set pipefail true for bash in Dockerfile (#1104)
Set pipefail true for bash in Dockerfile
2024-12-19 15:54:42 +02:00
Pēteris Caune
5f94889d01
Fix mypy warning 2024-12-19 12:34:38 +02:00
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
f7334f7a0e
Add a system check for testing SITE_ROOT against ALLOWED_HOSTS
It checks if the hostname in SITE_ROOT would validate
against ALLOWED_HOSTS.
2024-12-19 11:45:07 +02:00
Pēteris Caune
46bf30ac7f
Move ^/projects/ routes from hc.urls to hc.accounts.urls 2024-12-19 11:15:48 +02:00
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