diff --git a/examples/file/Makefile b/examples/file/Makefile index e3cf9cc..2056d8e 100644 --- a/examples/file/Makefile +++ b/examples/file/Makefile @@ -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: diff --git a/examples/file/README.md b/examples/file/README.md index 576bbc6..6ad805e 100644 --- a/examples/file/README.md +++ b/examples/file/README.md @@ -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` diff --git a/examples/file/web/1.html b/examples/file/web/1.html new file mode 100644 index 0000000..66d34f8 --- /dev/null +++ b/examples/file/web/1.html @@ -0,0 +1 @@ +1.html \ No newline at end of file diff --git a/examples/file/web/index.html b/examples/file/web/index.html new file mode 100644 index 0000000..b2d525b --- /dev/null +++ b/examples/file/web/index.html @@ -0,0 +1 @@ +index \ No newline at end of file