| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154 |
- {
- "operationId": "updateProxyHost",
- "summary": "Update a Proxy Host",
- "tags": ["proxy-hosts"],
- "security": [
- {
- "bearerAuth": [
- "proxy_hosts.manage"
- ]
- }
- ],
- "parameters": [
- {
- "in": "path",
- "name": "hostID",
- "description": "The ID of the Proxy Host",
- "schema": {
- "type": "integer",
- "minimum": 1
- },
- "required": true,
- "example": 2
- }
- ],
- "requestBody": {
- "description": "Proxy Host Payload",
- "required": true,
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "additionalProperties": false,
- "minProperties": 1,
- "properties": {
- "domain_names": {
- "$ref": "../../../../components/proxy-host-object.json#/properties/domain_names"
- },
- "forward_scheme": {
- "$ref": "../../../../components/proxy-host-object.json#/properties/forward_scheme"
- },
- "forward_host": {
- "$ref": "../../../../components/proxy-host-object.json#/properties/forward_host"
- },
- "forward_port": {
- "$ref": "../../../../components/proxy-host-object.json#/properties/forward_port"
- },
- "certificate_id": {
- "$ref": "../../../../components/proxy-host-object.json#/properties/certificate_id"
- },
- "ssl_forced": {
- "$ref": "../../../../components/proxy-host-object.json#/properties/ssl_forced"
- },
- "hsts_enabled": {
- "$ref": "../../../../components/proxy-host-object.json#/properties/hsts_enabled"
- },
- "hsts_subdomains": {
- "$ref": "../../../../components/proxy-host-object.json#/properties/hsts_subdomains"
- },
- "trust_forwarded_proto": {
- "$ref": "../../../../components/proxy-host-object.json#/properties/trust_forwarded_proto"
- },
- "http2_support": {
- "$ref": "../../../../components/proxy-host-object.json#/properties/http2_support"
- },
- "block_exploits": {
- "$ref": "../../../../components/proxy-host-object.json#/properties/block_exploits"
- },
- "caching_enabled": {
- "$ref": "../../../../components/proxy-host-object.json#/properties/caching_enabled"
- },
- "allow_websocket_upgrade": {
- "$ref": "../../../../components/proxy-host-object.json#/properties/allow_websocket_upgrade"
- },
- "access_list_id": {
- "$ref": "../../../../components/proxy-host-object.json#/properties/access_list_id"
- },
- "advanced_config": {
- "$ref": "../../../../components/proxy-host-object.json#/properties/advanced_config"
- },
- "enabled": {
- "$ref": "../../../../components/proxy-host-object.json#/properties/enabled"
- },
- "meta": {
- "$ref": "../../../../components/proxy-host-object.json#/properties/meta"
- },
- "locations": {
- "$ref": "../../../../components/proxy-host-object.json#/properties/locations"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "200 response",
- "content": {
- "application/json": {
- "examples": {
- "default": {
- "value": {
- "id": 3,
- "created_on": "2025-10-30T01:12:05.000Z",
- "modified_on": "2025-10-30T01:17:06.000Z",
- "owner_user_id": 1,
- "domain_names": [
- "test.example.com"
- ],
- "forward_host": "127.0.0.1",
- "forward_port": 8080,
- "access_list_id": 0,
- "certificate_id": 0,
- "ssl_forced": false,
- "caching_enabled": false,
- "block_exploits": false,
- "advanced_config": "",
- "meta": {
- "nginx_online": true,
- "nginx_err": null
- },
- "allow_websocket_upgrade": false,
- "http2_support": false,
- "forward_scheme": "http",
- "enabled": true,
- "locations": [],
- "hsts_enabled": false,
- "hsts_subdomains": false,
- "trust_forwarded_proto": false,
- "owner": {
- "id": 1,
- "created_on": "2025-10-28T00:50:24.000Z",
- "modified_on": "2025-10-28T00:50:24.000Z",
- "is_disabled": false,
- "email": "[email protected]",
- "name": "jamiec",
- "nickname": "jamiec",
- "avatar": "//www.gravatar.com/avatar/6193176330f8d38747f038c170ddb193?default=mm",
- "roles": [
- "admin"
- ]
- },
- "certificate": null,
- "access_list": null
- }
- }
- },
- "schema": {
- "$ref": "../../../../components/proxy-host-object.json"
- }
- }
- }
- }
- }
- }
|