Commit graph

9 commits

Author SHA1 Message Date
Manav Rathi e2c894f87f
[infra] Limit the maximum size of the nginx stdout logs
nginx logs to stdout, which is captured by docker and put into a file at
/var/lib/docker/containers/<nginx-cont-id>/<id>-json.log

By default, the size of this file is unbounded. Add a maximum limit of 1 GB to this.

References:
- https://docs.docker.com/config/containers/logging/local/
- https://stackoverflow.com/questions/31829587/docker-container-logs-taking-all-my-disk-space
2024-04-10 09:23:48 +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 64c95d2397
Tweak formatting 2024-03-18 21:34:24 +05:30
Manav Rathi c177efe79c
Add documentation comments 2024-03-18 15:44:00 +05:30
Manav Rathi 2f38f23b77
Update install instructions 2024-03-18 13:30:07 +05:30
Manav Rathi 9ba9b8a984
Add initial nginx conf 2024-03-18 10:39:39 +05:30
Manav Rathi 022c11d7fa
Import the base nginx service definition we use 2024-03-18 03:50:21 +05:30