mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 14:02:15 +00:00
90 lines
2.7 KiB
JSON
90 lines
2.7 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"$schema": {
|
|
"type": "string"
|
|
},
|
|
"domains": {
|
|
"type": "array",
|
|
"minItems": 1,
|
|
"items": { "$ref": "#/definitions/domain" }
|
|
},
|
|
"servers": {
|
|
"type": "array",
|
|
"minItems": 1,
|
|
"items": { "$ref": "#/definitions/server" }
|
|
},
|
|
"skip_planet": {
|
|
"type": "boolean",
|
|
"description": "Skip the full planet download, useful for testing"
|
|
}
|
|
},
|
|
"required": ["domains", "servers", "skip_planet"],
|
|
"definitions": {
|
|
"cert-upload": {
|
|
"type": "object",
|
|
"description": "Upload your own certificate. Ideal for Cloudflare Origin Certificates with 15 year expiry. Steps: 1) Create an Origin Certificate on Cloudflare at SSL/TLS / Origin Server. 2) Generate private key and CSR with Cloudflare: Private key type: ECC, Certificate Validity: 15 years. 3) Key format: PEM. Save origin certificate as something.cert and private key as something.key in the dirname folder.",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"type": { "const": "upload" },
|
|
"dirname": {
|
|
"type": "string",
|
|
"minLength": 1,
|
|
"description": "Directory name containing your certificate (.cert) and private key (.key) files"
|
|
}
|
|
},
|
|
"required": ["type", "dirname"]
|
|
},
|
|
"cert-letsencrypt": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"type": { "const": "letsencrypt" },
|
|
"email": { "type": "string", "format": "email" }
|
|
},
|
|
"required": ["type", "email"]
|
|
},
|
|
"cert-dummy": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"type": { "const": "dummy" }
|
|
},
|
|
"required": ["type"]
|
|
},
|
|
"cert": {
|
|
"oneOf": [
|
|
{ "$ref": "#/definitions/cert-upload" },
|
|
{ "$ref": "#/definitions/cert-letsencrypt" },
|
|
{ "$ref": "#/definitions/cert-dummy" }
|
|
]
|
|
},
|
|
"domain": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"domain": { "type": "string", "format": "hostname" },
|
|
"cert": { "$ref": "#/definitions/cert" }
|
|
},
|
|
"required": ["domain", "cert"]
|
|
},
|
|
"server": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"hostname": {
|
|
"type": "string",
|
|
"description": "hostname used for ssh to connect. can be an IP address"
|
|
},
|
|
"server_ssh_passwd": {
|
|
"type": "string",
|
|
"description": "Leave this empty if you use SSH keys"
|
|
}
|
|
},
|
|
"required": ["hostname"]
|
|
}
|
|
}
|
|
}
|