Commit Graph

27 Commits

Author SHA1 Message Date
Jake Howard 750fceee02
Remove cache lock 2024-01-14 16:39:05 +00:00
Jake Howard 87cac3fecb
Ensure cache files remain active for a while 2024-01-14 16:14:43 +00:00
Jake Howard bbf7411f50
Run everything as non-root 2024-01-14 12:59:31 +00:00
Jake Howard 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
Jake Howard 8ce25dcf2d
Use s6 to run everything in a single container 2024-01-13 21:43:10 +00:00
Jake Howard 6996e191e5
Clear proxy header 2023-11-23 17:44:08 +00:00
Jake Howard 9083d5c5fb
Remove server header 2023-11-23 17:44:08 +00:00
Jake Howard d4645d3812
Ensure "public" is included in cache control headers 2023-11-23 13:33:19 +00:00
Jake Howard c3aea8f176
Use nvm to install Node rather than deprecated nodesource scripts 2023-10-27 17:37:58 +01:00
Jake Howard 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
Jake Howard f055517cc1
Update to Wagtail 4.1 2023-04-16 15:04:51 +01:00
Jake Howard 32a06e4b42
Unset some extra headers
Avoids some gunicorn errors
2023-02-22 09:32:18 +00:00
Jake Howard 92ecbb2c48
Route nginx to django app 2023-02-22 09:15:44 +00:00
Jake Howard 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
Jake Howard 7d20ccd8d7
Restart gunicorn processes more often 2023-02-21 21:46:26 +00:00
Jake Howard 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
Jake Howard 378c0f9f44
Allow all IPs to send forwarded headers 2023-02-06 20:03:56 +00:00
Jake Howard 79f532b5c0
Do a lookup to find reverse proxy
`forwarded_allow_ips` doesn't support CIDR
2022-10-30 14:26:06 +00:00
Jake Howard 1023c821ab
Allow gunicorn to use `X-Forwarded-*` header 2022-10-30 12:14:16 +00:00
Jake Howard cd48ae7810
Revert "Replace spotify data cache with new cached properties"
This reverts commit a3d9fa177e.
2022-10-02 16:17:49 +01:00
Jake Howard 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
Jake Howard fb453a3277
Run an additional thread so the GIL isn't sitting completely idle 2022-09-06 08:36:55 +01:00
Jake Howard 79d6c1e951
Update spotify playlists in cron 2022-09-04 16:57:57 +01:00
Jake Howard da89510eee
Restart workers after a given number of requests 2022-08-30 21:39:11 +01:00
Jake Howard ad894a30a1
Correctly override gunicorn server header 2022-08-30 08:48:16 +01:00
Jake Howard 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
Jake Howard 9a15fcbe60
Move gunicorn conf to etc directory 2022-07-29 08:29:50 +01:00