Commits vergleichen
Keine gemeinsamen Commits. „67790007ce2e59446cc19c2697b3618cc464fbe3“ und „767050dc03b5a0b6f76871e3ae998a458da8d102“ haben vollständig unterschiedliche Historien.
67790007ce
...
767050dc03
3 geänderte Dateien mit 37 neuen und 19 gelöschten Zeilen
|
@ -19,10 +19,9 @@
|
||||||
"default": null
|
"default": null
|
||||||
},
|
},
|
||||||
"dns": {
|
"dns": {
|
||||||
"description": "This contains the domains(Keys) and the DNS-Servers(values) that are responsible for it.",
|
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"additionalProperties": {
|
"additionalProperties": {
|
||||||
"$ref": "#/$defs/Builder"
|
"$ref": "#/$defs/DnsBuilder"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"certificates_path": {
|
"certificates_path": {
|
||||||
|
@ -30,7 +29,6 @@
|
||||||
"default": "certificates"
|
"default": "certificates"
|
||||||
},
|
},
|
||||||
"ca": {
|
"ca": {
|
||||||
"description": "The Key of this table describe an nickname for an CA.\nLetsencrypt Prod and Staging are builtin configured, so they doesn't have to be configured.",
|
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"additionalProperties": {
|
"additionalProperties": {
|
||||||
"$ref": "#/$defs/CA"
|
"$ref": "#/$defs/CA"
|
||||||
|
@ -39,7 +37,7 @@
|
||||||
},
|
},
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"$defs": {
|
"$defs": {
|
||||||
"Builder": {
|
"DnsBuilder": {
|
||||||
"oneOf": [
|
"oneOf": [
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
@ -66,6 +64,19 @@
|
||||||
"server"
|
"server"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"type": {
|
||||||
|
"type": "string",
|
||||||
|
"const": "dnsupdate"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"type"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
@ -107,7 +118,7 @@
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"renew_before": {
|
"renew_before": {
|
||||||
"description": "Amount of days the certificate is renewed before the Certificate is outdated\nTODO: give to processor",
|
"description": "Amount of days the certificate is renewed before the Certificate is outdated\n TODO: give to processor",
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"format": "uint32",
|
"format": "uint32",
|
||||||
"minimum": 1,
|
"minimum": 1,
|
||||||
|
|
|
@ -66,19 +66,13 @@
|
||||||
},
|
},
|
||||||
"owner": {
|
"owner": {
|
||||||
"description": "Owner of the Certificate and private key",
|
"description": "Owner of the Certificate and private key",
|
||||||
"type": [
|
"type": "string",
|
||||||
"string",
|
"default": ""
|
||||||
"null"
|
|
||||||
],
|
|
||||||
"default": null
|
|
||||||
},
|
},
|
||||||
"group": {
|
"group": {
|
||||||
"description": "Group of the Certificate and private key",
|
"description": "Group of the Certificate and private key",
|
||||||
"type": [
|
"type": "string",
|
||||||
"string",
|
"default": ""
|
||||||
"null"
|
|
||||||
],
|
|
||||||
"default": null
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
|
@ -87,7 +81,7 @@
|
||||||
"domains"
|
"domains"
|
||||||
],
|
],
|
||||||
"$defs": {
|
"$defs": {
|
||||||
"Builder": {
|
"DnsBuilder": {
|
||||||
"oneOf": [
|
"oneOf": [
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
@ -114,6 +108,19 @@
|
||||||
"server"
|
"server"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"type": {
|
||||||
|
"type": "string",
|
||||||
|
"const": "dnsupdate"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"type"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
@ -155,7 +162,7 @@
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"renew_before": {
|
"renew_before": {
|
||||||
"description": "Amount of days the certificate is renewed before the Certificate is outdated\nTODO: give to processor",
|
"description": "Amount of days the certificate is renewed before the Certificate is outdated\n TODO: give to processor",
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"format": "uint32",
|
"format": "uint32",
|
||||||
"minimum": 1,
|
"minimum": 1,
|
||||||
|
|
|
@ -205,7 +205,7 @@ async fn schema_generator() -> Result<(), Error> {
|
||||||
schema_settings.meta_schema = Some(DRAFT07.into());
|
schema_settings.meta_schema = Some(DRAFT07.into());
|
||||||
let mut generator = SchemaGenerator::new(schema_settings);
|
let mut generator = SchemaGenerator::new(schema_settings);
|
||||||
let general_schema = serialize_with_formatter(&generator.root_schema_for::<General>(), formatter.clone())?;
|
let general_schema = serialize_with_formatter(&generator.root_schema_for::<General>(), formatter.clone())?;
|
||||||
match FILE_MODE_OVERWRITE.open("schema-general.json").await {
|
match FILE_MODE_WRITE.clone().create_new(false).open("schema-general.json").await {
|
||||||
Ok(mut file) => {
|
Ok(mut file) => {
|
||||||
match file.write(general_schema.as_bytes()).await {
|
match file.write(general_schema.as_bytes()).await {
|
||||||
Ok(_) => {},
|
Ok(_) => {},
|
||||||
|
@ -216,7 +216,7 @@ async fn schema_generator() -> Result<(), Error> {
|
||||||
};
|
};
|
||||||
|
|
||||||
let site_schema = serialize_with_formatter(&generator.root_schema_for::<Site>(), formatter.clone())?;
|
let site_schema = serialize_with_formatter(&generator.root_schema_for::<Site>(), formatter.clone())?;
|
||||||
match FILE_MODE_OVERWRITE.open("schema-site.json").await {
|
match FILE_MODE_WRITE.clone().create_new(false).open("schema-site.json").await {
|
||||||
Ok(mut file) => {
|
Ok(mut file) => {
|
||||||
match file.write(site_schema.as_bytes()).await {
|
match file.write(site_schema.as_bytes()).await {
|
||||||
Ok(_) => {},
|
Ok(_) => {},
|
||||||
|
|
Laden …
Tabelle hinzufügen
In neuem Issue referenzieren