You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
check the mount size and write it to the $CACHE_SIZE variable: this might not be required, NGINX can fill the disk and then manage itself after that. See https://www.nginx.com/blog/nginx-caching-guide/ under max_size.
periodically resolve the other nodes in the same app, update the nginx.conf and reload NGINX: we can use the DNS resolver and variables to achieve this inside normal NGINX with no extra scripts or reloading. See https://www.nginx.com/blog/dns-service-discovery-nginx-plus/ in the "Setting the Domain Name in a Variable" section.
If we drop the scripts we're maintaining to do this, then we can drop other dependencies and hivemind as well. The repo then becomes the example fly.toml, the example nginx.conf and a Dockerfile that just reads:
We're currently adding scripts to do two things:
check the mount size and write it to the
$CACHE_SIZEvariable: this might not be required, NGINX can fill the disk and then manage itself after that. See https://www.nginx.com/blog/nginx-caching-guide/ undermax_size.periodically resolve the other nodes in the same app, update the
nginx.confand reload NGINX: we can use the DNS resolver and variables to achieve this inside normal NGINX with no extra scripts or reloading. See https://www.nginx.com/blog/dns-service-discovery-nginx-plus/ in the "Setting the Domain Name in a Variable" section.If we drop the scripts we're maintaining to do this, then we can drop other dependencies and hivemind as well. The repo then becomes the example
fly.toml, the examplenginx.confand aDockerfilethat just reads:and that's it.