sozu icon indicating copy to clipboard operation
sozu copied to clipboard

configuration language

Open Geal opened this issue 4 years ago • 1 comments

TOML is very limited now for sozu's use cases, we should move to a more flexible format like Dhall or KDL

one of the main pain points is about routing: we want to route depending on various parameters like hostname, path (prefix or regex), headers, do SNI or TCP proxying, add filters... And it's the same for backends, where we might want to add specific options for health checks, load balancing...

The current TOML approach is an array of JSON like lines (that cannot span multiple lines each), it's quite annoying to manage

Changing the format will also be a good opportunity to change the parameters and how they are organized.

Examples for inspiration:

  • Caddy: https://caddyserver.com/docs/caddyfile-tutorial
  • Traefik: https://doc.traefik.io/traefik/routing/overview/

Geal avatar Jul 29 '21 12:07 Geal

Consider using Ruud’s Configuration Language.

yonas avatar Feb 08 '24 18:02 yonas