Manav Rathi
0b3ca8db69
[server] Increase HTTP request body size to prevent 413 Too Large errors
...
Allow HTTP request body up to 4 MB. The default is 1 MB, which is too small for
face embeddings for photos with more than a couple of hundred faces.
Roughly, each face embedding is 4KB, but encrypting and base-64-ing the
embedding also has a 30% addition (just from one sample I saw), so this should
allow photos with ~700 faces to go through.
Ref:
- https://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size
2024-07-05 14:08:10 +05:30
Manav Rathi
407eca5414
[server] nginx configuration improvements
...
- Use keepalives
- Update deprecated http2 syntax
- Document how to check config
Refs:
- https://www.nginx.com/blog/avoiding-top-10-nginx-configuration-mistakes/#no-keepalives
- https://github.com/nginxinc/kubernetes-ingress/issues/4237
- https://stackoverflow.com/questions/65944578/how-to-get-nginx-running-in-docker-to-reload-nginx-conf-configuration
2024-04-04 12:36:39 +05:30
Manav Rathi
303b12c709
Fix the dependency on nginx
2024-03-19 09:31:51 +05:30
Manav Rathi
19724367df
Support nginx configuration reloads
2024-03-18 21:47:53 +05:30
Manav Rathi
fb0e2d2604
Don't restart museum on restarting nginx
2024-03-18 15:54:25 +05:30
Manav Rathi
c177efe79c
Add documentation comments
2024-03-18 15:44:00 +05:30
Manav Rathi
27b13765d7
Fix the environment var
2024-03-18 15:23:23 +05:30
Manav Rathi
f494832bd7
Limit max connections at the nginx level
2024-03-18 15:21:47 +05:30
Manav Rathi
53cf5ffc45
Fix some paths in README
2024-03-18 14:35:42 +05:30
Manav Rathi
7ded8ad4fe
Fix key name
2024-03-18 13:07:36 +05:30
Manav Rathi
30cf709eb2
Wrap
2024-03-18 12:39:16 +05:30
Manav Rathi
d8347c3976
Remove extra environment
2024-03-18 12:36:29 +05:30
Manav Rathi
5ee878c30e
Require nginx before starting museum.nginx
2024-03-18 12:33:27 +05:30
Manav Rathi
f695c5e0d3
Remove extra newline
2024-03-18 11:06:54 +05:30
Manav Rathi
303b26b95f
Tweak the nginx setup
2024-03-18 11:04:31 +05:30
Manav Rathi
9ba9b8a984
Add initial nginx conf
2024-03-18 10:39:39 +05:30
Manav Rathi
d893efe5d1
Remove the restart limiter
...
During recent DDoS attacks, these restart limits had to be manually
disabled. For now, disabling them in our reference copy too, will bring them
back if they are needed later.
2024-03-18 10:27:42 +05:30
Manav Rathi
a0599f7b33
Outline the nginx approach
2024-03-18 10:25:11 +05:30
Manav Rathi
9beedcf4e0
Move into separate folder
2024-03-18 10:16:55 +05:30