Skip to content
This repository was archived by the owner on Apr 8, 2022. It is now read-only.
This repository was archived by the owner on Apr 8, 2022. It is now read-only.

We can remove all custom scripts and Dockerfile instructions #2

Description

@sudhirj

We're currently adding scripts to do two things:

  • 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:

FROM nginx
COPY nginx.conf /etc/nginx/nginx.conf

and that's it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions