Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use local httpbin service in examples. #244

Merged
merged 1 commit into from
Jul 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading