BackendConfiguration

Interfacein backend@fastly/js-compute 4.0.0View source

Extends DefaultBackendConfiguration.

Properties

name

stringoptionaldeprecatedView source
Deprecated: to avoid name collisions it is recommended to use auto-generated names by omitting this property.

The name of the backend. The name has to be between 1 and 254 characters inclusive. The name can be whatever you would like, as long as it does not match the name of any of the static service backends nor match any other dynamic backends built during a single execution of the application.

If no name is provided, an autogenerated internal name will be used.

target

stringView source

A hostname, IPv4, or IPv6 address for the backend as well as an optional port. If set, the target has to be at least 1 character.

hostname
"example.com"
hostname and port
"example.com:443"
ip address
"1.2.3.4"
ip address and port
"1.2.3.4:8080"

hostOverride

stringoptionalView source

If set, will force the HTTP Host header on connections to this backend to be the supplied value.

"example.com:443"

sniHostname

stringoptionalView source

The SNI hostname to use on connections to this backend.

grpc

booleanoptionalsince 3.23.0View source