jonmorehouse / gatekeeper

a pluggable http routing runtime
12 stars 1 forks source link

static-upstreams plugin #9

Closed jonmorehouse closed 8 years ago

jonmorehouse commented 8 years ago

The other static-upstreams plugin got hijacked by all my work on plugins and setting up the upstream manager.

Anywho - the static-upstreams plugin actually needs to be able to emit static upstreams. Let's just use HCL and pass in a list of HCL files that can be used to configured upstreams.

variable "foo" {
    description = "foo api"
    prefixes = [ "/foo", "/bar" ]
    hostnames = [ "Foo", "Bar" ]
    backends = [
      "http://foo:8000",
   ]
}

variable "bar" { ... }
jonmorehouse commented 8 years ago

Should this be called plugin-upstreams-file or something like that?