Skip to content

Commit 125de55

Browse files
authored
Adding draft JSON schema in preparation for v4 (#94)
1 parent 16e4379 commit 125de55

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

ssl-conf-schema.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"$id": "https://raw.githubusercontent.com/bfren/docker-nginx-proxy/main/ssl-conf-schema.json",
3+
"$schema": "https://json-schema.org/draft-07/schema",
4+
"type": "object",
5+
"required": [ "domains" ],
6+
"additionalProperties": false,
7+
"properties": {
8+
"domains": {
9+
"type": "array",
10+
"items": { "$ref": "#/$defs/domain" }
11+
}
12+
},
13+
"$defs": {
14+
"domain": {
15+
"type": "object",
16+
"required": [ "primary", "upstream" ],
17+
"additionalProperties": false,
18+
"properties" : {
19+
"primary": {
20+
"type": "string",
21+
},
22+
"upstream": {
23+
"type": "string",
24+
},
25+
"aliases": {
26+
"type": "array",
27+
"items": {
28+
"type": "string"
29+
}
30+
},
31+
"custom": {
32+
"type": "boolean",
33+
}
34+
}
35+
}
36+
}
37+
}

0 commit comments

Comments
 (0)