123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148 |
- {
- "type": "object",
- "description": "Proxy Host object",
- "required": [
- "id",
- "created_on",
- "modified_on",
- "owner_user_id",
- "domain_names",
- "forward_host",
- "forward_port",
- "access_list_id",
- "certificate_id",
- "ssl_forced",
- "caching_enabled",
- "block_exploits",
- "advanced_config",
- "meta",
- "allow_websocket_upgrade",
- "http2_support",
- "forward_scheme",
- "enabled",
- "locations",
- "hsts_enabled",
- "hsts_subdomains",
- "certificate",
- "use_default_location",
- "ipv6"
- ],
- "additionalProperties": false,
- "properties": {
- "id": {
- "$ref": "../common.json#/definitions/id"
- },
- "created_on": {
- "$ref": "../common.json#/definitions/created_on"
- },
- "modified_on": {
- "$ref": "../common.json#/definitions/modified_on"
- },
- "owner_user_id": {
- "$ref": "../common.json#/definitions/user_id"
- },
- "domain_names": {
- "$ref": "../common.json#/definitions/domain_names"
- },
- "forward_host": {
- "type": "string",
- "minLength": 1,
- "maxLength": 255
- },
- "forward_port": {
- "type": "integer",
- "minimum": 1,
- "maximum": 65535
- },
- "access_list_id": {
- "$ref": "../common.json#/definitions/access_list_id"
- },
- "certificate_id": {
- "$ref": "../common.json#/definitions/certificate_id"
- },
- "ssl_forced": {
- "$ref": "../common.json#/definitions/ssl_forced"
- },
- "caching_enabled": {
- "$ref": "../common.json#/definitions/caching_enabled"
- },
- "block_exploits": {
- "$ref": "../common.json#/definitions/block_exploits"
- },
- "advanced_config": {
- "type": "string"
- },
- "meta": {
- "type": "object"
- },
- "allow_websocket_upgrade": {
- "description": "Allow Websocket Upgrade for all paths",
- "example": true,
- "type": "boolean"
- },
- "http2_support": {
- "$ref": "../common.json#/definitions/http2_support"
- },
- "forward_scheme": {
- "type": "string",
- "enum": ["http", "https"]
- },
- "enabled": {
- "$ref": "../common.json#/definitions/enabled"
- },
- "locations": {
- "type": "array",
- "minItems": 0,
- "items": {
- "type": "object",
- "required": ["forward_scheme", "forward_host", "forward_port", "path"],
- "additionalProperties": false,
- "properties": {
- "id": {
- "type": ["integer", "null"]
- },
- "path": {
- "type": "string",
- "minLength": 1
- },
- "forward_scheme": {
- "$ref": "#/properties/forward_scheme"
- },
- "forward_host": {
- "$ref": "#/properties/forward_host"
- },
- "forward_port": {
- "$ref": "#/properties/forward_port"
- },
- "forward_path": {
- "type": "string"
- },
- "advanced_config": {
- "type": "string"
- }
- }
- }
- },
- "hsts_enabled": {
- "$ref": "../common.json#/definitions/hsts_enabled"
- },
- "hsts_subdomains": {
- "$ref": "../common.json#/definitions/hsts_subdomains"
- },
- "certificate": {
- "$ref": "./certificate-object.json"
- },
- "owner": {
- "$ref": "./user-object.json"
- },
- "access_list": {
- "$ref": "./access-list-object.json"
- },
- "use_default_location": {
- "type": "boolean"
- },
- "ipv6": {
- "type": "boolean"
- }
- }
- }
|