mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-29 17:07:24 +02:00
proxy: add idle timeout (#2319)
This commit is contained in:
parent
2ceaae8e54
commit
134ca74ec9
17 changed files with 658 additions and 531 deletions
|
@ -156,7 +156,9 @@ func Test_UpdateOptions(t *testing.T) {
|
|||
allowWebSockets := testOptions(t)
|
||||
allowWebSockets.Policies = []config.Policy{{To: toFoo, From: "http://bar.example", AllowWebsockets: true}}
|
||||
customTimeout := testOptions(t)
|
||||
customTimeout.Policies = []config.Policy{{To: toFoo, From: "http://bar.example", UpstreamTimeout: 10 * time.Second}}
|
||||
|
||||
ten := 10 * time.Second
|
||||
customTimeout.Policies = []config.Policy{{To: toFoo, From: "http://bar.example", UpstreamTimeout: &ten}}
|
||||
corsPreflight := testOptions(t)
|
||||
corsPreflight.Policies = []config.Policy{{To: toFoo, From: "http://bar.example", CORSAllowPreflight: true}}
|
||||
disableAuth := testOptions(t)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue