contour icon indicating copy to clipboard operation
contour copied to clipboard

host/OS aware sub configuration support

Open christianparpart opened this issue 8 months ago • 2 comments
trafficstars

include_configuration: "/home/username/.config/contour/config.d/${OSNAME}-${HOSTNAME}/*.conf"

The idea here is, that our contour.yml is the base config, but we can override things in here using a special include file, that is loaded after this file, and overrides items that were already loaded.

To make it more flexible, the user can use substitution variables (as shown above), e.g.:

  • "${OSNAME}" -> "Windows", "Linux", "macOS", default uname based on what the syscall is returning us
  • "${HOSTNAME}" -> so people can have hostname specific sub config overrides
  • .... anything else that would make sense?

christianparpart avatar Mar 14 '25 11:03 christianparpart