Commit Graph

16 Commits

Author SHA1 Message Date
Mark Street 4b8d81e634 nginx logging as json (#1733)
* nginx logging as json

* string the values that could be - when empty
2025-11-08 08:12:25 +00:00
Mark Street ee4239181d Don't forward /apiXYZ to backend (#1731) 2025-11-06 14:23:31 +00:00
Mark Street e4597d5d79 Don't explode when backend is unavailable (#1660)
* Don't explode when backend is unavailable

* return '{}' as that may be less weird than null

* Don't choke on CloudFlare HTML response

* CloudFlare -> Cloudflare (rebranded in 2016, who knew)
2025-09-12 23:21:23 +09:00
Mark Street f04a00e9c2 Hot Module Replacement is a dev-only thing (#1618)
Hot Module Reload is a dev-only thing
2025-06-16 14:23:47 +09:00
Mark Street f35bae11c0 Re-enable brotli in nginx (#1613) 2025-06-15 17:00:21 +09:00
Mark Street 07eea75181 Oops (#1603)
* Oops

* undo

* fixup down.html behaviour

* text/html is in gzip_types by defaut, so remove this to prevent log warning

* Apply down.html behaviour to dev docker setup

* ... and one more thing
2025-06-12 11:40:10 +01:00
Mark Street e1c236c1d8 More nginx tweaks (#1601)
* Increase nginx buffers

* Swap brotli for gzip

* Add latency_log to nginx

* Try to prevent cloudflare 'down' page
2025-06-12 07:22:35 +01:00
Mark Street 9fa230b515 Allow 512k in-flight before buffering data to disk (#1598) 2025-06-10 23:21:25 +09:00
Mark Street e0021bf625 Bump nginx buffer, use http/1.1 (#1597) 2025-06-10 16:33:33 +09:00
Mark Street 9977fcb9ed Set 'ignore_invalid_headers on' in nginx config (#1591) 2025-06-09 09:06:32 +09:00
Mark Street 12ce138296 Migration remediation 3 (#1587)
* Add letsencrypt to gitignore

* Set 5M upload limit in nginx

* Django is behind a reverse proxy so trust x-forwarded-proto

* black
2025-06-08 16:01:56 +09:00
Mark Street 5668b3c311 Migration remediation 2 (#1585)
* Reenable brotli

* Add housekeeping to entrypoint

* temporarily add brotli to port 80

* load the brotli modules

* older nginx?

* pin exact version

* byo alpine with brotli

* remove brotli from 80
2025-06-08 03:13:03 +09:00
Mark Street 7121155a0f Migration remediation part 1 (#1583)
* Migration remediation part 1

* Add more to .gitignore
2025-06-08 02:16:57 +09:00
Mark Street 77bc4e6672 Add Docker Production setup (#1580)
* Add Docker Production setup

* Fixup ci

* forgot to hit save..

* try again

* More trying

* tweaks

* 🐻 hide all the dumbness

* overriding INTERNAL_API_BASE is optional

* Add pgdump dir to allow pg_restore

* rework nginx configuration for prod

* Add proxy timeouts for sanity
2025-06-07 15:51:39 +01:00
Alex Bates 2e96373ac7 Projects list, creation, settings pages (#542)
* add projects list

* new project page

* mypy

* allow '.' in github identifiers

* implement project create

* project settings

* disallow anons from being project members

* uploadable project icon

* docker attempt

* fix tests

* add tests

* add description form

* refactor to add useEntity and FieldSet

* move FieldSet out of subdirectory

* use same page for project tabs

* scroll up to UnderlineNav when tab changes

* stylelint

* configure vscode mypy extension

* mypy

* fix mypy and dmypy

dmypy does not support follow_imports=silent. Instead we explicitly
disable most checks for asm_differ and m2c, which
has the same effect

* remove redundant mypy flags

* FieldSet style tweaks

* give UnderlineNav horiz padding

* fix swr mutate of project header

* few tweaks to help docker (#550)

* eth changes

* use POST/DELETE rather than PUT for project members

* add migration

* fix pr creation

* simplify project platform derivation

Co-authored-by: Mark Street <22226349+mkst@users.noreply.github.com>
Co-authored-by: Ethan Roseman <ethteck@gmail.com>
2022-10-07 20:12:18 +09:00
Mark Street 0569c48e95 Add nginx to docker-compose + revert to Ubuntu 20.04 (#501) 2022-08-09 01:11:27 +09:00