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:
@@ -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:
|
||||
|
||||
@@ -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
1
examples/file/web/1.html
Normal file
@@ -0,0 +1 @@
|
||||
1.html
|
||||
1
examples/file/web/index.html
Normal file
1
examples/file/web/index.html
Normal file
@@ -0,0 +1 @@
|
||||
index
|
||||
Reference in New Issue
Block a user