From 9565aa794aeacea805a2269eac34a249e772f6e6 Mon Sep 17 00:00:00 2001 From: ihiverlet <94982379+ihiverlet@users.noreply.github.com> Date: Thu, 12 Sep 2024 12:59:01 +0200 Subject: [PATCH] Add proxy.json schema (#493) Co-authored-by: Comte --- .../src/main/resources/schemas/proxy.json | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 onyxia-api/src/main/resources/schemas/proxy.json diff --git a/onyxia-api/src/main/resources/schemas/proxy.json b/onyxia-api/src/main/resources/schemas/proxy.json new file mode 100644 index 00000000..b8b49bd7 --- /dev/null +++ b/onyxia-api/src/main/resources/schemas/proxy.json @@ -0,0 +1,39 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Proxy", + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "description": "Inject proxy settings", + "default": false, + "x-onyxia": { + "hidden": true + } + }, + "httpProxy": { + "type": "string", + "description": "Proxy URL for HTTP requests", + "default": "", + "x-onyxia": { + "hidden": true + } + }, + "httpsProxy": { + "type": "string", + "description": "Proxy URL for HTTPS requests", + "default": "", + "x-onyxia": { + "hidden": true + } + }, + "noProxy": { + "type": "string", + "description": "Comma separated list of hosts for which proxy is bypassed", + "default": "", + "x-onyxia": { + "hidden": true + } + } + } +}