mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-08-08 10:23:37 +00:00
Add support for proxy_protocol in proxy_hosts and streams
Closes #1114 Related To #1882 Related To #3537 Related To #3618 Co-authored-by: jwklijnsma <janwiebe@janwiebe.eu> Co-authored-by: SBado <16034687+SBado@users.noreply.github.com>
This commit is contained in:
@@ -110,6 +110,16 @@
|
||||
"caching_enabled": {
|
||||
"description": "Should we cache assets",
|
||||
"type": "boolean"
|
||||
},
|
||||
"proxy_protocol_enabled": {
|
||||
"description": "Should the proxy_procotol be enabled",
|
||||
"type": "boolean"
|
||||
},
|
||||
"loadbalancer_address": {
|
||||
"description": "Hostname, IP or CIDR range of the load balancer",
|
||||
"type": "string",
|
||||
"minLength": 0,
|
||||
"maxLength": 255
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -23,7 +23,9 @@
|
||||
"locations",
|
||||
"hsts_enabled",
|
||||
"hsts_subdomains",
|
||||
"certificate"
|
||||
"certificate",
|
||||
"proxy_protocol_enabled",
|
||||
"loadbalancer_address"
|
||||
],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
@@ -137,6 +139,12 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"proxy_protocol_enabled": {
|
||||
"$ref": "../common.json#/properties/proxy_protocol_enabled"
|
||||
},
|
||||
"loadbalancer_address": {
|
||||
"$ref": "../common.json#/properties/loadbalancer_address"
|
||||
},
|
||||
"owner": {
|
||||
"$ref": "./user-object.json"
|
||||
},
|
||||
|
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"type": "object",
|
||||
"description": "Stream object",
|
||||
"required": ["id", "created_on", "modified_on", "owner_user_id", "incoming_port", "forwarding_host", "forwarding_port", "tcp_forwarding", "udp_forwarding", "enabled", "meta"],
|
||||
"required": ["id", "created_on", "modified_on", "owner_user_id", "incoming_port", "forwarding_host", "forwarding_port", "tcp_forwarding", "udp_forwarding", "enabled", "meta", "proxy_protocol_enabled", "loadbalancer_address"],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"id": {
|
||||
@@ -55,6 +55,12 @@
|
||||
},
|
||||
"meta": {
|
||||
"type": "object"
|
||||
},
|
||||
"proxy_protocol_enabled": {
|
||||
"$ref": "../common.json#/properties/proxy_protocol_enabled"
|
||||
},
|
||||
"loadbalancer_address": {
|
||||
"$ref": "../common.json#/properties/loadbalancer_address"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -50,7 +50,9 @@
|
||||
"enabled": true,
|
||||
"locations": null,
|
||||
"hsts_enabled": false,
|
||||
"hsts_subdomains": false
|
||||
"hsts_subdomains": false,
|
||||
"proxy_protocol_enabled": false,
|
||||
"loadbalancer_address": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@@ -50,7 +50,9 @@
|
||||
"enabled": true,
|
||||
"locations": null,
|
||||
"hsts_enabled": false,
|
||||
"hsts_subdomains": false
|
||||
"hsts_subdomains": false,
|
||||
"proxy_protocol_enabled": false,
|
||||
"loadbalancer_address": ""
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@@ -79,6 +79,12 @@
|
||||
},
|
||||
"locations": {
|
||||
"$ref": "../../../../components/proxy-host-object.json#/properties/locations"
|
||||
},
|
||||
"proxy_protocol_enabled": {
|
||||
"$ref": "../../../../components/proxy-host-object.json#/properties/proxy_protocol_enabled"
|
||||
},
|
||||
"loadbalancer_address": {
|
||||
"$ref": "../../../../components/proxy-host-object.json#/properties/loadbalancer_address"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -116,6 +122,8 @@
|
||||
"enabled": true,
|
||||
"hsts_enabled": false,
|
||||
"hsts_subdomains": false,
|
||||
"proxy_protocol_enabled": false,
|
||||
"loadbalancer_address": "",
|
||||
"owner": {
|
||||
"id": 1,
|
||||
"created_on": "2024-10-07T22:43:55.000Z",
|
||||
|
@@ -67,6 +67,12 @@
|
||||
},
|
||||
"locations": {
|
||||
"$ref": "../../../components/proxy-host-object.json#/properties/locations"
|
||||
},
|
||||
"proxy_protocol_enabled": {
|
||||
"$ref": "../../../components/proxy-host-object.json#/properties/proxy_protocol_enabled"
|
||||
},
|
||||
"loadbalancer_address": {
|
||||
"$ref": "../../../components/proxy-host-object.json#/properties/loadbalancer_address"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -101,6 +107,8 @@
|
||||
"enabled": true,
|
||||
"hsts_enabled": false,
|
||||
"hsts_subdomains": false,
|
||||
"proxy_protocol_enabled": false,
|
||||
"loadbalancer_address": "",
|
||||
"certificate": null,
|
||||
"owner": {
|
||||
"id": 1,
|
||||
|
@@ -36,6 +36,8 @@
|
||||
"forwarding_port": 80,
|
||||
"tcp_forwarding": true,
|
||||
"udp_forwarding": false,
|
||||
"proxy_protocol_enabled": false,
|
||||
"loadbalancer_address": "",
|
||||
"meta": {
|
||||
"nginx_online": true,
|
||||
"nginx_err": null
|
||||
|
@@ -32,6 +32,12 @@
|
||||
"udp_forwarding": {
|
||||
"$ref": "../../../components/stream-object.json#/properties/udp_forwarding"
|
||||
},
|
||||
"proxy_protocol_enabled": {
|
||||
"$ref": "../../../components/stream-object.json#/properties/proxy_protocol_enabled"
|
||||
},
|
||||
"loadbalancer_address": {
|
||||
"$ref": "../../../components/stream-object.json#/properties/loadbalancer_address"
|
||||
},
|
||||
"meta": {
|
||||
"$ref": "../../../components/stream-object.json#/properties/meta"
|
||||
}
|
||||
@@ -57,6 +63,8 @@
|
||||
"forwarding_port": 80,
|
||||
"tcp_forwarding": true,
|
||||
"udp_forwarding": false,
|
||||
"proxy_protocol_enabled": false,
|
||||
"loadbalancer_address": "",
|
||||
"meta": {
|
||||
"nginx_online": true,
|
||||
"nginx_err": null
|
||||
|
@@ -36,6 +36,8 @@
|
||||
"forwarding_port": 80,
|
||||
"tcp_forwarding": true,
|
||||
"udp_forwarding": false,
|
||||
"proxy_protocol_enabled": false,
|
||||
"loadbalancer_address": "",
|
||||
"meta": {
|
||||
"nginx_online": true,
|
||||
"nginx_err": null
|
||||
|
@@ -79,6 +79,12 @@
|
||||
},
|
||||
"locations": {
|
||||
"$ref": "../../../../components/proxy-host-object.json#/properties/locations"
|
||||
},
|
||||
"proxy_protocol_enabled": {
|
||||
"$ref": "../../../../components/proxy-host-object.json#/properties/proxy_protocol_enabled"
|
||||
},
|
||||
"loadbalancer_address": {
|
||||
"$ref": "../../../../components/proxy-host-object.json#/properties/loadbalancer_address"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -116,6 +122,8 @@
|
||||
"enabled": true,
|
||||
"hsts_enabled": false,
|
||||
"hsts_subdomains": false,
|
||||
"proxy_protocol_enabled": false,
|
||||
"loadbalancer_address": "",
|
||||
"owner": {
|
||||
"id": 1,
|
||||
"created_on": "2024-10-07T22:43:55.000Z",
|
||||
|
Reference in New Issue
Block a user