Commit graph

25 commits

Author SHA1 Message Date
bbf7411f50
Run everything as non-root 2024-01-14 12:59:31 +00:00
f5a18fdca0
Use cache to accelerate static file serving with nginx
This lets whitenoise handle the headers, and nginx serves them quickly from the cache
2024-01-13 23:01:15 +00:00
8ce25dcf2d
Use s6 to run everything in a single container 2024-01-13 21:43:10 +00:00
6996e191e5
Clear proxy header 2023-11-23 17:44:08 +00:00
9083d5c5fb
Remove server header 2023-11-23 17:44:08 +00:00
d4645d3812
Ensure "public" is included in cache control headers 2023-11-23 13:33:19 +00:00
c3aea8f176
Use nvm to install Node rather than deprecated nodesource scripts 2023-10-27 17:37:58 +01:00
530503d769
Add in-memory cache around linguist data
Mostly useful for local development, but should help a little in production too
2023-07-15 17:47:21 +01:00
f055517cc1
Update to Wagtail 4.1 2023-04-16 15:04:51 +01:00
32a06e4b42
Unset some extra headers
Avoids some gunicorn errors
2023-02-22 09:32:18 +00:00
92ecbb2c48
Route nginx to django app 2023-02-22 09:15:44 +00:00
4326dc2299
Add helper entrypoint scripts
This keeps the configuration for what to run inside the container, without adding the extra weight and config of s6
2023-02-22 08:53:42 +00:00
7d20ccd8d7
Restart gunicorn processes more often 2023-02-21 21:46:26 +00:00
d8a8e7fd8e
Use nginx to serve static files
This should keep easy requests out the app event loop, hopefully improving response time
2023-02-21 21:46:26 +00:00
378c0f9f44
Allow all IPs to send forwarded headers 2023-02-06 20:03:56 +00:00
79f532b5c0
Do a lookup to find reverse proxy
`forwarded_allow_ips` doesn't support CIDR
2022-10-30 14:26:06 +00:00
1023c821ab
Allow gunicorn to use X-Forwarded-* header 2022-10-30 12:14:16 +00:00
cd48ae7810
Revert "Replace spotify data cache with new cached properties"
This reverts commit a3d9fa177e.
2022-10-02 16:17:49 +01:00
a3d9fa177e
Replace spotify data cache with new cached properties
Also replace the update script with one which will do everything
2022-09-30 09:07:31 +01:00
fb453a3277
Run an additional thread so the GIL isn't sitting completely idle 2022-09-06 08:36:55 +01:00
79d6c1e951
Update spotify playlists in cron 2022-09-04 16:57:57 +01:00
da89510eee
Restart workers after a given number of requests 2022-08-30 21:39:11 +01:00
ad894a30a1
Correctly override gunicorn server header 2022-08-30 08:48:16 +01:00
10b32da3e0
Add crontab to project
Cron will likely be a duplicate compose service with a different
command.
2022-08-20 20:48:27 +01:00
9a15fcbe60
Move gunicorn conf to etc directory 2022-07-29 08:29:50 +01:00