Commit graph

34 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 5266e5d1dc
[infra] Fix the listmonk upgrade invocation 2024-04-05 16:51:08 +05:30
Manav Rathi e170b6811d
Tweaks
Refs:
https://github.com/knadh/listmonk/blob/master/listmonk-simple.service#L16
2024-04-04 21:27:47 +05:30
Manav Rathi 3ed2186dcf
Initial cut of listmonk setup 2024-04-04 20:23:25 +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 12aa071adc
[meta] Add a special case for comments in the notifier workaround
Discord still hasn't fixed the issue on their end, and having a top level link
whenever a new comment is added is getting cumbersome, so add a handler for the
common comments case too.

Tested and deployed.
2024-03-28 10:11:04 +05:30
Manav Rathi e25089a55c
[infra] Mention that logging to stdout is a good default for services 2024-03-20 11:28:40 +05:30
Manav Rathi 35ba5b6685
[workers] Fallback to plain text Discord message as a 429 workaround 2024-03-20 09:56:14 +05:30
Manav Rathi 7c383023e4
[workers] Add the cast-albums worker 2024-03-19 15:33:09 +05:30
Manav Rathi ed547d5f2c
Add empty vars section 2024-03-19 13:55:31 +05:30
Manav Rathi 1e50570936
wrangler publish is deprecated 2024-03-19 13:51:13 +05:30
Manav Rathi 2419b079af
Add the github-discord-notifier code 2024-03-19 13:50:39 +05:30
Manav Rathi cfd298a052
[workers] Start migrating workers to the monorepo 2024-03-19 13:14:25 +05:30
Manav Rathi 303b12c709
Fix the dependency on nginx 2024-03-19 09:31:51 +05:30
Manav Rathi f6e575885d
Note the dashboard URL 2024-03-19 05:41:16 +05:30
Manav Rathi 9fe8d1fd53
Add recommended headers 2024-03-18 21:57:25 +05:30
Manav Rathi 19724367df
Support nginx configuration reloads 2024-03-18 21:47:53 +05:30
Manav Rathi ba896f2f3a
Match file name convention 2024-03-18 21:36:01 +05:30
Manav Rathi 64c95d2397
Tweak formatting 2024-03-18 21:34:24 +05:30
Manav Rathi 2486a94d21
Add the service the serves status.ente.io 2024-03-18 21:22:15 +05:30
Manav Rathi c177efe79c
Add documentation comments 2024-03-18 15:44:00 +05:30
Manav Rathi c43a0a7182
Shorten 2024-03-18 13:31:10 +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 9beedcf4e0
Move into separate folder 2024-03-18 10:16:55 +05:30
Manav Rathi 022c11d7fa
Import the base nginx service definition we use 2024-03-18 03:50:21 +05:30
Manav Rathi 5841aefb75
[infra] Remind about needing to also enable node-exporter 2024-03-15 13:06:07 +05:30
Manav Rathi 12bdbcfbdc
npx prettier --config ../docs/.prettierrc.json --write '**/*.md' 2024-03-14 22:33:00 +05:30
Manav Rathi dc29ab496f
Add prometheus and promtail definitions 2024-03-14 21:56:36 +05:30
Manav Rathi 477e3fee80
Define services 2024-03-14 21:18:38 +05:30
Manav Rathi 7ddfeb93dd
Fix up the workflow 2024-03-14 17:32:54 +05:30
Manav Rathi aaffc740bc
Update paths 2024-03-14 17:29:11 +05:30
Manav Rathi 3e38d56579
Import the code for copycat-db 2024-03-14 17:20:00 +05:30
Manav Rathi 6e9893e5c5
Create infra directory 2024-03-14 17:14:47 +05:30