pub struct ForwardingRule {
pub entry_protocol: String,
pub entry_port: usize,
pub target_protocol: String,
pub target_port: usize,
pub certificate_id: Option<String>,
pub tls_passthrough: bool,
}
Expand description
This exists in the forwarding_rules
field of a droplet.
Forwarding rules determine how traffic will be routed from the Load Balancer to the Droplets assigned to it. They can be used to configure the type of traffic (HTTP, HTTPS, or TCP) and to map ports on the Load Balancer to ports on the Droplets. For SSL encrypted traffic, you may also configure whether to use SSL termination at the Load Balancer (by specifying an SSL certificate) or to pass the encrypted traffic through to the Droplet. Currently, each Load Balancer may have up to 15 forwarding rules.
Fields§
§entry_protocol: String
The protocol used for traffic to the Load Balancer. The possible values are: “http”, “https”, or “tcp”.
entry_port: usize
The port on which the Load Balancer instance will listen.
target_protocol: String
The protocol used for traffic from the Load Balancer to the backend Droplets. The possible values are: “http”, “https”, or “tcp”.
target_port: usize
An integer representing the port on the backend Droplets to which the Load Balancer will send traffic.
certificate_id: Option<String>
The ID of the TLS certificate used for SSL termination if enabled.
tls_passthrough: bool
A boolean value indicating whether SSL encrypted traffic will be passed through to the backend Droplets.
Implementations§
Trait Implementations§
Source§impl Clone for ForwardingRule
impl Clone for ForwardingRule
Source§fn clone(&self) -> ForwardingRule
fn clone(&self) -> ForwardingRule
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more