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

Update README.md #349

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ curl -v -H "Host: www.zooniverse.org" http://localhost:8080/main-54f00afe77a81c4
Test the default - [first server block](https://github.com/zooniverse/static/blob/1572db64aaeb38d904e1a60de00e9f06871414df/nginx.conf#L69)

``` bash
# provide an unkonwn host to test the defaul server block.
# provide an unknown host to test the default server block.
# making sure it matches path in the upstream proxy
curl -v -H "Host: talk.sunspotter.org" http://localhost:8080/users/%E7%8E%8B%E5%8F%AF%E8%90%B1/index.html
```
Expand All @@ -34,11 +34,11 @@ Read more at the [Nginx request processing docs](http://nginx.org/en/docs/http/r

#### Simulate the jenkins test step

Use the `test-http` image to replicate the jenkins `Test HTTP response` stage. Uncomment the `test-http` conatiner in the docker-compose yaml.
Use the `test-http` image to replicate the jenkins `Test HTTP response` stage. Uncomment the `test-http` container in the docker-compose yaml.

``` bash
docker-compose run --rm test-http
# in the alpine conatiner install curl
# in the alpine container install curl
apk add --no-cache curl
# and test a request to nginx static image
curl -vk http://nginx/index.html
Expand Down
Loading