2023-03-03 20:37:09 +01:00
|
|
|
{
|
2024-03-12 16:22:35 +01:00
|
|
|
"$schema": "https://json-schema.org/draft/2019-09/schema",
|
2023-03-22 18:15:22 +01:00
|
|
|
"$id": "https://app.edge.emissary.cadoles.com/spec.json",
|
2023-03-03 20:37:09 +01:00
|
|
|
"title": "AppSpec",
|
|
|
|
"description": "Emissary 'App' specification",
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"apps": {
|
|
|
|
"type": "object",
|
|
|
|
"patternProperties": {
|
|
|
|
".*": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"url": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"sha256sum": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"address": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"format": {
|
|
|
|
"type": "string",
|
2023-03-21 15:21:19 +01:00
|
|
|
"enum": [
|
|
|
|
"zip",
|
2023-10-20 17:39:28 +02:00
|
|
|
"tar.gz",
|
|
|
|
"zim"
|
2023-03-21 15:21:19 +01:00
|
|
|
]
|
2023-10-03 06:09:15 +02:00
|
|
|
},
|
|
|
|
"storage": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"blobStoreDsn": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"documentStoreDsn": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"shareStoreDsn": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"blobStoreDsn",
|
|
|
|
"documentStoreDsn",
|
|
|
|
"shareStoreDsn"
|
|
|
|
],
|
|
|
|
"additionalProperties": false
|
2023-03-03 20:37:09 +01:00
|
|
|
}
|
|
|
|
},
|
2023-03-21 15:21:19 +01:00
|
|
|
"required": [
|
|
|
|
"url",
|
|
|
|
"sha256sum",
|
|
|
|
"address",
|
2023-10-03 06:09:15 +02:00
|
|
|
"format",
|
|
|
|
"storage"
|
2023-03-21 15:21:19 +01:00
|
|
|
],
|
2023-03-03 20:37:09 +01:00
|
|
|
"additionalProperties": false
|
|
|
|
}
|
|
|
|
}
|
2023-03-21 13:28:41 +01:00
|
|
|
},
|
2023-04-05 23:21:43 +02:00
|
|
|
"config": {
|
2023-03-21 13:28:41 +01:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-04-05 23:21:43 +02:00
|
|
|
"appUrlResolving": {
|
2023-03-21 15:21:19 +01:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-04-05 23:21:43 +02:00
|
|
|
"ifaceMappings": {
|
|
|
|
"type": "object",
|
|
|
|
"patternProperties": {
|
|
|
|
".*": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
2023-03-21 15:21:19 +01:00
|
|
|
},
|
2023-04-05 23:21:43 +02:00
|
|
|
"defaultUrlTemplate": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
2024-03-12 16:22:35 +01:00
|
|
|
"required": [
|
|
|
|
"defaultUrlTemplate"
|
|
|
|
],
|
2023-04-05 23:21:43 +02:00
|
|
|
"additionalProperties": false
|
|
|
|
},
|
|
|
|
"unexpectedHostRedirect": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"acceptedHostPatterns": {
|
2023-03-21 15:21:19 +01:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
2023-04-05 23:21:43 +02:00
|
|
|
"type": "string"
|
2023-03-21 15:21:19 +01:00
|
|
|
}
|
2023-03-28 20:43:45 +02:00
|
|
|
},
|
2023-04-05 23:21:43 +02:00
|
|
|
"hostTarget": {
|
2023-03-28 20:43:45 +02:00
|
|
|
"type": "string"
|
2023-03-21 15:21:19 +01:00
|
|
|
}
|
|
|
|
},
|
2024-03-12 16:22:35 +01:00
|
|
|
"required": [
|
|
|
|
"acceptedHostPatterns",
|
|
|
|
"hostTarget"
|
|
|
|
],
|
2023-04-05 23:21:43 +02:00
|
|
|
"additionalProperties": false
|
|
|
|
},
|
|
|
|
"auth": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"local": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"key": {
|
2024-03-12 16:22:35 +01:00
|
|
|
"type": [
|
|
|
|
"object",
|
|
|
|
"string"
|
|
|
|
]
|
2023-04-05 23:21:43 +02:00
|
|
|
},
|
2023-10-03 06:09:15 +02:00
|
|
|
"signingAlgorithm": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-04-05 23:21:43 +02:00
|
|
|
"accounts": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"username": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"password": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"algo": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"claims": {
|
|
|
|
"type": "object"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"username",
|
|
|
|
"password",
|
|
|
|
"algo"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"cookieDomain": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"cookieDuration": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
2023-10-03 06:09:15 +02:00
|
|
|
"key",
|
|
|
|
"signingAlgorithm"
|
2023-04-05 23:21:43 +02:00
|
|
|
],
|
|
|
|
"additionalProperties": false
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false
|
2023-03-21 13:28:41 +01:00
|
|
|
}
|
2023-04-05 23:21:43 +02:00
|
|
|
},
|
|
|
|
"additionalProperties": false
|
2023-03-03 20:37:09 +01:00
|
|
|
}
|
|
|
|
},
|
2023-03-21 15:21:19 +01:00
|
|
|
"required": [
|
|
|
|
"apps"
|
|
|
|
],
|
2023-03-03 20:37:09 +01:00
|
|
|
"additionalProperties": false
|
|
|
|
}
|