Skip to content

config: move to a structured config file approach #328

Open
@samlaf

Description

@samlaf

Right now proxy is configured using urfave flags/env-vars.
This has served us well, and there are good reasons for using this simple approach (see https://www.arp242.net/flags-config.html), but I think the proxy's feature set has outgrown this simple approach and warrants a proper hierarchical structured config file.

People who want to quickly spin up the proxy are referred to our .env.example.holesky file, where the config structure is encoded with string prefixes:

Image

This is very yucky and bug-prone.

We should allow proxy to load up its config from a toml or other structured format.
Then we could have a nice detailed configuration example documentation, like e.g. kurtosis' ethereum-package.
We could then create holesky and mainnet examples of such a config file to help kick-start people with.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions