Skip to content

Commit

Permalink
Use local httpbin service in examples. (#244)
Browse files Browse the repository at this point in the history
Signed-off-by: Piotr Sikora <[email protected]>
  • Loading branch information
PiotrSikora authored Jul 21, 2024
1 parent 5c570fe commit 74f60a4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
9 changes: 9 additions & 0 deletions examples/http_auth_random/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,14 @@ services:
- ./target/wasm32-wasi/release:/etc/envoy/proxy-wasm-plugins
networks:
- envoymesh
depends_on:
- httpbin
httpbin:
image: mccutchen/go-httpbin
hostname: httpbin
ports:
- "8080:8080"
networks:
- envoymesh
networks:
envoymesh: {}
5 changes: 2 additions & 3 deletions examples/http_auth_random/envoy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,5 @@ static_resources:
- endpoint:
address:
socket_address:
address: httpbin.org
port_value: 80
hostname: "httpbin.org"
address: httpbin
port_value: 8080
2 changes: 1 addition & 1 deletion examples/http_auth_random/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ impl HttpContext for HttpAuthRandom {
],
None,
vec![],
Duration::from_secs(5),
Duration::from_secs(1),
)
.unwrap();
Action::Pause
Expand Down

0 comments on commit 74f60a4

Please sign in to comment.