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
|
||||
},
|
||||
"dns": {
|
||||
"description": "This contains the domains(Keys) and the DNS-Servers(values) that are responsible for it.",
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"$ref": "#/$defs/Builder"
|
||||
"$ref": "#/$defs/DnsBuilder"
|
||||
}
|
||||
},
|
||||
"certificates_path": {
|
||||
|
@ -30,7 +29,6 @@
|
|||
"default": "certificates"
|
||||
},
|
||||
"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",
|
||||
"additionalProperties": {
|
||||
"$ref": "#/$defs/CA"
|
||||
|
@ -39,7 +37,7 @@
|
|||
},
|
||||
"additionalProperties": false,
|
||||
"$defs": {
|
||||
"Builder": {
|
||||
"DnsBuilder": {
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "object",
|
||||
|
@ -66,6 +64,19 @@
|
|||
"server"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"const": "dnsupdate"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"type"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
@ -107,7 +118,7 @@
|
|||
"type": "string"
|
||||
},
|
||||
"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",
|
||||
"format": "uint32",
|
||||
"minimum": 1,
|
||||
|
|
|
@ -66,19 +66,13 @@
|
|||
},
|
||||
"owner": {
|
||||
"description": "Owner of the Certificate and private key",
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
],
|
||||
"default": null
|
||||
"type": "string",
|
||||
"default": ""
|
||||
},
|
||||
"group": {
|
||||
"description": "Group of the Certificate and private key",
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
],
|
||||
"default": null
|
||||
"type": "string",
|
||||
"default": ""
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
|
@ -87,7 +81,7 @@
|
|||
"domains"
|
||||
],
|
||||
"$defs": {
|
||||
"Builder": {
|
||||
"DnsBuilder": {
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "object",
|
||||
|
@ -114,6 +108,19 @@
|
|||
"server"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"const": "dnsupdate"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"type"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
@ -155,7 +162,7 @@
|
|||
"type": "string"
|
||||
},
|
||||
"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",
|
||||
"format": "uint32",
|
||||
"minimum": 1,
|
||||
|
|
|
@ -205,7 +205,7 @@ async fn schema_generator() -> Result<(), Error> {
|
|||
schema_settings.meta_schema = Some(DRAFT07.into());
|
||||
let mut generator = SchemaGenerator::new(schema_settings);
|
||||
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) => {
|
||||
match file.write(general_schema.as_bytes()).await {
|
||||
Ok(_) => {},
|
||||
|
@ -216,7 +216,7 @@ async fn schema_generator() -> Result<(), Error> {
|
|||
};
|
||||
|
||||
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) => {
|
||||
match file.write(site_schema.as_bytes()).await {
|
||||
Ok(_) => {},
|
||||
|
|
Laden …
Tabelle hinzufügen
In neuem Issue referenzieren