Skip to content

Commit

Permalink
add assets server to file example
Browse files Browse the repository at this point in the history
  • Loading branch information
umputun committed Apr 10, 2021
1 parent 7da8ee5 commit 0274bd7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/file/Makefile
Expand Up @@ -2,7 +2,7 @@ run: install
whoami -port 8081 -name=svc1 &
whoami -port 8082 -name=svc2 &
whoami -port 8083 -name=svc3 &
../../dist/reproxy --file.enabled --file.name=reproxy.yml
../../dist/reproxy --file.enabled --file.name=reproxy.yml --assets.location=./web --assets.root=/static
pkill -9 whoami

kill:
Expand Down
1 change: 1 addition & 0 deletions examples/file/README.md
Expand Up @@ -6,6 +6,7 @@ To run it do `make run` and try to hit it, for example
- `curl localhost:8080/api/svc2/something`
- `curl localhost:8080/api/svc3/something`
- `curl 127.0.0.1:8080/api/svc3/something`
- `curl 127.0.0.1:8080/static/1.html`

for health check try - `curl localhost:8080/health`

Expand Down
1 change: 1 addition & 0 deletions examples/file/web/1.html
@@ -0,0 +1 @@
1.html
1 change: 1 addition & 0 deletions examples/file/web/index.html
@@ -0,0 +1 @@
index

0 comments on commit 0274bd7

Please sign in to comment.