fix proxy-host-object

This commit is contained in:
2025-01-25 19:49:54 +01:00
parent 9f62d94d26
commit 6d288dc8fe
6 changed files with 32 additions and 0 deletions
@@ -17,6 +17,8 @@
"advanced_config", "advanced_config",
"meta", "meta",
"allow_websocket_upgrade", "allow_websocket_upgrade",
"enable_proxy_protocol",
"load_balancer_ip",
"http2_support", "http2_support",
"forward_scheme", "forward_scheme",
"enabled", "enabled",
@@ -78,6 +80,16 @@
"example": true, "example": true,
"type": "boolean" "type": "boolean"
}, },
"enable_proxy_protocol": {
"description": "Enable PROXY Protocol support",
"example": true,
"type": "boolean"
},
"load_balancer_ip": {
"type": "string",
"minLength": 0,
"maxLength": 255
},
"http2_support": { "http2_support": {
"$ref": "../common.json#/properties/http2_support" "$ref": "../common.json#/properties/http2_support"
}, },
@@ -45,6 +45,8 @@
"nginx_err": null "nginx_err": null
}, },
"allow_websocket_upgrade": false, "allow_websocket_upgrade": false,
"enable_proxy_protocol": false,
"load_balancer_ip": "",
"http2_support": false, "http2_support": false,
"forward_scheme": "http", "forward_scheme": "http",
"enabled": true, "enabled": true,
@@ -65,6 +65,12 @@
"allow_websocket_upgrade": { "allow_websocket_upgrade": {
"$ref": "../../../../components/proxy-host-object.json#/properties/allow_websocket_upgrade" "$ref": "../../../../components/proxy-host-object.json#/properties/allow_websocket_upgrade"
}, },
"enable_proxy_protocol": {
"$ref": "../../../components/proxy-host-object.json#/properties/enable_proxy_protocol"
},
"load_balancer_ip": {
"$ref": "../../../components/proxy-host-object.json#/properties/load_balancer_ip"
},
"access_list_id": { "access_list_id": {
"$ref": "../../../../components/proxy-host-object.json#/properties/access_list_id" "$ref": "../../../../components/proxy-host-object.json#/properties/access_list_id"
}, },
@@ -53,6 +53,12 @@
"allow_websocket_upgrade": { "allow_websocket_upgrade": {
"$ref": "../../../components/proxy-host-object.json#/properties/allow_websocket_upgrade" "$ref": "../../../components/proxy-host-object.json#/properties/allow_websocket_upgrade"
}, },
"enable_proxy_protocol": {
"$ref": "../../../components/proxy-host-object.json#/properties/enable_proxy_protocol"
},
"load_balancer_ip": {
"$ref": "../../../components/proxy-host-object.json#/properties/load_balancer_ip"
},
"access_list_id": { "access_list_id": {
"$ref": "../../../components/proxy-host-object.json#/properties/access_list_id" "$ref": "../../../components/proxy-host-object.json#/properties/access_list_id"
}, },
@@ -96,6 +102,8 @@
"advanced_config": "", "advanced_config": "",
"meta": {}, "meta": {},
"allow_websocket_upgrade": false, "allow_websocket_upgrade": false,
"enable_proxy_protocol": false,
"load_balancer_ip": "",
"http2_support": false, "http2_support": false,
"forward_scheme": "http", "forward_scheme": "http",
"enabled": true, "enabled": true,
@@ -111,6 +111,8 @@
"nginx_err": null "nginx_err": null
}, },
"allow_websocket_upgrade": false, "allow_websocket_upgrade": false,
"enable_proxy_protocol": false,
"load_balancer_ip": "",
"http2_support": false, "http2_support": false,
"forward_scheme": "http", "forward_scheme": "http",
"enabled": true, "enabled": true,
+2
View File
@@ -29,6 +29,8 @@ describe('Proxy Hosts endpoints', () => {
block_exploits: false, block_exploits: false,
caching_enabled: false, caching_enabled: false,
allow_websocket_upgrade: false, allow_websocket_upgrade: false,
enable_proxy_protocol: false,
load_balancer_ip: '',
http2_support: false, http2_support: false,
hsts_enabled: false, hsts_enabled: false,
hsts_subdomains: false, hsts_subdomains: false,