github.com/xchangeee/syslet/schema@v0.2.0

addons/ingress.cue raw

 1package addons
 2
 3#SysdefIngress: {
 4	ingress!: [string]: #SysdefIngressEntry
 5}
 6
 7// Sysdef collects containers, networks, volumes, builds, secrets by name and
 8// provides an 'enabled' flag to quickly remove items without deleting them from
 9// code
10#SysdefIngressEntry: {
11	enabled!:       bool
12	host!:          string
13	tls!:           bool
14	containerPort?: int
15	backends?:      string
16
17	reverseProxyConfig: string
18	extraConfig:        string
19}
20
21#SysdefIngressDefaults: {
22	ingress: {
23		[string]: enabled: bool | *true
24		[string]: tls:     bool | *true
25
26		[string]: reverseProxyConfig: string | *""
27		[string]: extraConfig:        string | *""
28	}
29}