github.com/icyphox/x@v0.0.355-0.20220311094250-029bd783e8b8/.schemas/tlsx/viper.schema.json (about) 1 { 2 "$id": "https://raw.githubusercontent.com/ory/x/master/.schemas/tlsx/viper.schema.json", 3 "$schema": "http://json-schema.org/draft-07/schema#", 4 "title": "HTTPS", 5 "description": "Configure HTTP over TLS (HTTPS). All options can also be set using environment variables by replacing dots (`.`) with underscores (`_`) and uppercasing the key. For example, `some.prefix.tls.key.path` becomes `export SOME_PREFIX_TLS_KEY_PATH`. If all keys are left undefined, TLS will be disabled.", 6 "type": "object", 7 "additionalProperties": false, 8 "definitions": { 9 "source": { 10 "type": "object", 11 "additionalProperties": false, 12 "properties": { 13 "path": { 14 "title": "Path to PEM-encoded Fle", 15 "type": "string", 16 "examples": [ 17 "path/to/file.pem" 18 ] 19 }, 20 "base64": { 21 "title": "Base64 Encoded Inline", 22 "description": "The base64 string of the PEM-encoded file content. Can be generated using for example `base64 -i path/to/file.pem`.", 23 "type": "string", 24 "examples": [ 25 "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tXG5NSUlEWlRDQ0FrMmdBd0lCQWdJRVY1eE90REFOQmdr..." 26 ] 27 } 28 } 29 } 30 }, 31 "properties": { 32 "key": { 33 "title": "Private Key (PEM)", 34 "allOf": [{ 35 "$ref": "#/definitions/source" 36 }] 37 }, 38 "cert": { 39 "title": "TLS Certificate (PEM)", 40 "allOf": [{ 41 "$ref": "#/definitions/source" 42 }] 43 } 44 } 45 }