Skip to content

Commit

Permalink
tunnels: add support for access and http2Origin keys
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbednarz committed May 23, 2023
1 parent 6fa36f3 commit 9f6a3d7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tunnel.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,20 @@ type OriginRequestConfig struct {
ProxyType *string `json:"proxyType,omitempty"`
// IP rules for the proxy service
IPRules []IngressIPRule `json:"ipRules,omitempty"`
// Attempt to connect to origin with HTTP/2
Http2Origin *bool `json:"http2Origin,omitempty"`
// Access holds all access related configs
Access *AccessConfig `json:"access,omitempty"`
}

type AccessConfig struct {
// Required when set to true will fail every request that does not arrive
// through an access authenticated endpoint.
Required bool `yaml:"required" json:"required,omitempty"`
// TeamName is the organization team name to get the public key certificates for.
TeamName string `yaml:"teamName" json:"teamName"`
// AudTag is the AudTag to verify access JWT against.
AudTag []string `yaml:"audTag" json:"audTag"`
}

type IngressIPRule struct {
Expand Down

0 comments on commit 9f6a3d7

Please sign in to comment.