-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
] | ||
} | ||
|