1
0
mirror of https://github.com/umputun/reproxy.git synced 2024-11-24 08:12:31 +02:00
reproxy/examples/file
2021-05-28 16:11:31 -05:00
..
web add assets server to file example 2021-04-10 13:26:55 -05:00
web2 Multiple static location (#36) 2021-04-16 02:49:00 -05:00
Makefile Multiple static location (#36) 2021-04-16 02:49:00 -05:00
README.md add assets server to file example 2021-04-10 13:26:55 -05:00
reproxy.yml update docs and examples 2021-05-28 16:11:31 -05:00

Example of a file provider

To run it do make run and try to hit it, for example

  • curl localhost:8080/api/svc1/aaaaa
  • curl localhost:8080/api/svc1
  • 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

In order to kill all services run make kill