Start moving configs to file

This commit is contained in:
Ricardo Katz 2024-08-22 18:26:34 -03:00
parent 27cbb6ddb2
commit f793b464ee

View file

@ -194,6 +194,15 @@ func cleanConf(in, out *bytes.Buffer) error {
}
}
type LuaConfigs struct {
EnableMetrics bool `json:"enable_metrics"`
HTTPSPort string `json:"httpsPort"`
StatusPort string `json:"status_port"`
UseForwardedPorts bool `json:"use_forwarded_ports"`
EnableOCSP bool `json:"enable_ocsp"`
MonitorBatchMaxSize int `json:"monitor_batch_max_size"`
}
// Write populates a buffer using a template with NGINX configuration
// and the servers and upstreams created by Ingress rules
func (t *Template) Write(conf *config.TemplateConfig) ([]byte, error) {