Syntax
proxy:
'$ref': <string>
flow:
- <flow>
ip: <string>
name: <string>
port: <int>
ssl: {}
proxy:
'$ref': <string>
flow:
- <flow>
ip: <string>
name: <string>
port: <int>
ssl: {}
Sample
<proxy name="HTTP Proxy" port="3128" >
<transform xslt="strip.xslt"/>
<switch>
<case xPath="//convert" url="http://www.thomas-bayer.com/axis2/" />
</switch>
</proxy>
<proxy name="HTTP Proxy" port="3128" >
<transform xslt="strip.xslt"/>
<switch>
<case xPath="//convert" url="http://www.thomas-bayer.com/axis2/" />
</switch>
</proxy>
Attributes
| Name | Required | Default | Description | Examples |
|---|---|---|---|---|
| $ref | false | - | Reference a component defined under components. | - |
| ip | false | not set | If present, binds the port only on the specified IP. Useful for hosts with multiple IP addresses. | 127.0.0.1 |
| name | false | By default, a name will be automatically generated from the target, openapi, etc. | The name of the proxy or API. | - |
| port | false | 80 | The port Membrane listens on for incoming connections. | 8080 |
Child Structure
| Element | Cardinality | Description |
|---|---|---|
| flow | 0..* | |
| ssl | 0..1 | Configures a TLS context: the identity (key and certificate) presented to the peer, the certificates trusted from it, and handshake parameters such as protocol, ciphers, and client-certificate policy. Attach it to a serviceProxy/api to terminate inbound TLS, or to a target to make an outbound connection over TLS; most attributes and child elements apply to both directions, but a few - such as clientAuth and useAsDefault - only take effect on an inbound context. See tutorials/ssl-tls/10-TLS-Termination.yaml for inbound termination and tutorials/ssl-tls/20-Central-SSL-Config.yaml for sharing one ssl across several APIs via $ref. |