Commit graph

14 commits

Author SHA1 Message Date
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
2ff68cb597
Update docker/uwsgi.ini to handle subpath in SITE_ROOT
cc: #1091
2024-12-04 11:00:53 +02:00
Pēteris Caune
cb1b216125
Increase uWSGI buffer size to allow requests with large cookies
Fixes: #925
2023-12-15 13:43:27 +02:00
Pēteris Caune
3b8d473980
Add --skip-checks to "manage.py smtpd" to avoid multiple check runs 2023-12-15 11:15:31 +02:00
Pēteris Caune
65b9dd371f
Add system check to validate settings.SITE_ROOT
Fixes: #895
2023-12-15 11:04:21 +02:00
Pēteris Caune
89aa0a832b
Update uwsgi.ini to allow UWSGI_PROCESSES env var to override it 2023-10-17 10:24:20 +03:00
Pēteris Caune
d92412a0df
Fix uwsgi.ini to check for .gz files only in the CACHE dir 2023-05-11 17:03:18 +03:00
Pēteris Caune
6a5d151026
Update uwsgi.ini to serve compressed static files 2023-05-11 16:50:26 +03:00
Pēteris Caune
82cac0aed8
Tweak uwsgi post buffer size and options
* set post-buffering (buffer for POST data) to 16192
* add auto-procname for friendlier process names
* add strict, uwsgi won't start if uwsgi.ini contains invalid options
2023-04-03 12:10:51 +03:00
Pēteris Caune
08849d6f22
Update Docker image's uwsgi.ini to use SMTPD_PORT env var
Fixes: #791
2023-02-07 13:38:05 +02:00
Pēteris Caune
0cbe7798ac
Add max-fd=10000 in uwsgi.ini to work around uWSGI issue on Fedora
Fixes: #713
2022-10-13 16:26:19 +03:00
Pēteris Caune
7912f1e4df
Update Dockerfile to start SMTP listener
Fixes: #668
2022-06-13 17:15:51 +03:00
Pēteris Caune
e6427995b7
Add Whitenoise and improve README
Fixes: #548
2021-08-05 18:06:47 +03:00
Pēteris Caune
98439623c5
Add experimental Dockerfile and docker-compose.yml 2021-01-21 17:32:58 +02:00