mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-04 09:19:39 +02:00
(proxy, internal/config, internal/log, docs): opt-in websocket support
This commit is contained in:
parent
cf61c6be3d
commit
f966e5ab19
6 changed files with 55 additions and 4 deletions
|
@ -129,6 +129,10 @@ type Options struct {
|
|||
// Sub-routes
|
||||
Routes map[string]string `mapstructure:"routes"`
|
||||
DefaultUpstreamTimeout time.Duration `mapstructure:"default_upstream_timeout"`
|
||||
|
||||
// Enable proxying of websocket connections. Defaults to "false".
|
||||
// Caution: Enabling this feature could result in abuse via DOS attacks.
|
||||
AllowWebsockets bool `mapstructure:"allow_websockets"`
|
||||
}
|
||||
|
||||
// NewOptions returns a new options struct with default values
|
||||
|
@ -160,6 +164,7 @@ func NewOptions() *Options {
|
|||
AuthenticateInternalAddr: new(url.URL),
|
||||
AuthorizeURL: new(url.URL),
|
||||
RefreshCooldown: time.Duration(5 * time.Minute),
|
||||
AllowWebsockets: false,
|
||||
}
|
||||
return o
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue