1
0
mirror of https://github.com/umputun/reproxy.git synced 2025-11-29 22:08:14 +02:00

add assets server to file example

This commit is contained in:
Umputun
2021-04-10 13:26:55 -05:00
parent 7da8ee593e
commit 0274bd77f7
4 changed files with 4 additions and 1 deletions

View File

@@ -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:

View File

@@ -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`

1
examples/file/web/1.html Normal file
View File

@@ -0,0 +1 @@
1.html

View File

@@ -0,0 +1 @@
index