()
| 136 | } |
| 137 | |
| 138 | func (c *Config) Validate() error { |
| 139 | if c.Monitoring.Prometheus.Enabled() && c.Monitoring.Prometheus.Bind == c.Server.Bind { |
| 140 | return prometheus.IMGPROXY_PROMETHEUS_BIND.Errorf("should be different than IMGPROXY_BIND: %s", c.Server.Bind) |
| 141 | } |
| 142 | |
| 143 | return nil |
| 144 | } |