Files
2026-07-16 16:32:44 -04:00

178 lines
3.6 KiB
JSON

{
"definitions": {
"ConfigGRPCConfig": {
"properties": {
"enableGRPCGateway": {
"default": true,
"type": "boolean"
},
"enableInstrumentation": {
"type": "boolean"
},
"enableProtovalidate": {
"description": "Add a chain unary and streaming interceptor for buf.build/go/protovalidate",
"default": false,
"type": "boolean"
},
"enableReflection": {
"type": "boolean"
},
"enabled": {
"type": "boolean"
},
"grpcGatewayPath": {
"default": "/grpc-api",
"type": "string"
},
"grpcGatewayPathStrip": {
"default": false,
"type": "boolean"
},
"listen": {
"type": "string"
},
"logRequests": {
"type": "boolean"
}
},
"type": "object"
},
"ConfigHTTPConfig": {
"properties": {
"corsAllowCredentials": {
"type": "boolean"
},
"corsAllowPrivateNetwork": {
"type": "boolean"
},
"corsAllowedOrigins": {
"items": {
"type": "string"
},
"type": "array"
},
"corsEnabled": {
"type": "boolean"
},
"enabled": {
"type": "boolean"
},
"idleTimeout": {
"type": "string"
},
"listen": {
"type": "string"
},
"logExcludePathRegexps": {
"items": {
"type": "string"
},
"type": "array"
},
"logRequests": {
"type": "boolean"
},
"readTimeout": {
"type": "string"
},
"writeTimeout": {
"type": "string"
}
},
"type": "object"
},
"ConfigLogConfig": {
"properties": {
"enabled": {
"type": "boolean"
},
"format": {
"type": "string"
},
"level": {
"type": "string"
},
"output": {
"type": "string"
},
"timeFormat": {
"type": "string"
}
},
"type": "object"
},
"ConfigOTELConfig": {
"properties": {
"enabled": {
"type": "boolean"
},
"metricIntervalSecs": {
"type": "integer"
},
"prometheusEnabled": {
"type": "boolean"
},
"prometheusPath": {
"type": "string"
},
"stdoutEnabled": {
"type": "boolean"
}
},
"type": "object"
}
},
"properties": {
"costPerKWH": {
"default": 0.19,
"type": "number"
},
"disableWaterUsage": {
"default": false,
"type": "boolean"
},
"econetEmail": {
"type": "string"
},
"econetPassword": {
"type": "string"
},
"econetTLSInsecure": {
"default": false,
"type": "boolean"
},
"enableWebUI": {
"default": true,
"type": [
"null",
"boolean"
]
},
"environment": {
"type": "string"
},
"grpc": {
"$ref": "#/definitions/ConfigGRPCConfig"
},
"http": {
"$ref": "#/definitions/ConfigHTTPConfig"
},
"logging": {
"$ref": "#/definitions/ConfigLogConfig"
},
"name": {
"type": "string"
},
"otel": {
"$ref": "#/definitions/ConfigOTELConfig"
},
"pollInterval": {
"type": "integer"
},
"version": {
"type": "string"
}
},
"type": "object"
}