diff options
| author | crupest <crupest@outlook.com> | 2022-11-19 13:00:13 +0800 |
|---|---|---|
| committer | crupest <crupest@outlook.com> | 2022-11-19 13:00:13 +0800 |
| commit | 5fe53ec36e9298fd40a36877a9a5ceb791814f50 (patch) | |
| tree | 9fe248e5379c66cbaa740243bebc04bb7df7cd29 /template/nginx/server.schema.json | |
| parent | 02cb10f9dcf5cd228f563f28e607ad7403a5aa9c (diff) | |
| download | crupest-5fe53ec36e9298fd40a36877a9a5ceb791814f50.tar.gz crupest-5fe53ec36e9298fd40a36877a9a5ceb791814f50.tar.bz2 crupest-5fe53ec36e9298fd40a36877a9a5ceb791814f50.zip | |
No caddy, only nginx and certbot.
Diffstat (limited to 'template/nginx/server.schema.json')
| -rw-r--r-- | template/nginx/server.schema.json | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/template/nginx/server.schema.json b/template/nginx/server.schema.json new file mode 100644 index 0000000..536fead --- /dev/null +++ b/template/nginx/server.schema.json @@ -0,0 +1,80 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "definitions": { + "CertOnlySite": { + "properties": { + "subdomain": { + "type": "string" + }, + "type": { + "enum": [ + "cert-only" + ], + "type": "string" + } + }, + "type": "object" + }, + "ReverseProxySite": { + "properties": { + "subdomain": { + "type": "string" + }, + "type": { + "enum": [ + "reverse-proxy" + ], + "type": "string" + }, + "upstream": { + "properties": { + "name": { + "type": "string" + }, + "server": { + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "StaticFileSite": { + "properties": { + "root": { + "type": "string" + }, + "subdomain": { + "type": "string" + }, + "type": { + "enum": [ + "static-file" + ], + "type": "string" + } + }, + "type": "object" + } + }, + "properties": { + "sites": { + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ReverseProxySite" + }, + { + "$ref": "#/definitions/StaticFileSite" + }, + { + "$ref": "#/definitions/CertOnlySite" + } + ] + }, + "type": "array" + } + }, + "type": "object" +}
\ No newline at end of file |
