Skip to content

Commit

Permalink
Initial start to server config spec
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall committed Apr 25, 2024
1 parent c8628c1 commit d9949b7
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions server.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Server Configuration for scyllaridae",
"type": "object",
"properties": {
"label": {
"type": "string",
"description": "Label of the server configuration. Only used to help identify what the config does."
},
"destination-http-method": {
"type": "string",
"description": "HTTP method used for sending data to the destination server."
},
"file-header": {
"type": "string",
"description": "Header name for the file resource if it's not passed in the event."
},
"arg-header": {
"type": "string",
"description": "Header name for additional arguments passed to the command."
},
"forward-auth": {
"type": "boolean",
"description": "Indicates whether the authentication header should be forwarded."
},
"allowed-mimetypes": {
"type": "array",
"items": {
"type": "string"
},
"description": "List of MIME types allowed for processing. Either the full mimetype or globs image/*"
},
"cmd-by-mimetype": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"cmd": {
"type": "string",
"description": "Command to execute."
},
"args": {
"type": "array",
"items": {
"type": "string"
},
"description": "Arguments for the command. %s is a special value used to place the value from arg-header"
}
},
"required": ["cmd", "args"]
},
"description": "Commands and arguments ran by MIME type. The default mimetype is used for all mimetypes if an allowed mimetype does not have an explicit command."
}
},
"required": [
"label",
"destination-http-method",
"file-header",
"arg-header",
"forward-auth",
"allowed-mimetypes",
"cmd-by-mimetype"
]
}

0 comments on commit d9949b7

Please sign in to comment.