Sign inSign up

pengshp/proxy-app

By pengshp

•Updated over 5 years ago

nodejs app for proxy test!

Image
0

351

pengshp/proxy-app repository overview

⁠Usage

⁠environment

APPID

⁠Start several server instances

~$ docker run --rm -d -e APPID=2222 -p 2222:9999 pengshp/proxy-app:latest
~$ docker run --rm -d -e APPID=3333 -p 3333:9999 pengshp/proxy-app:latest

⁠Client test

~$ curl localhost:2222
appid: 2222 home page: says hello!

~$ curl localhost:2222/app1
appid: 2222 app1 page: says hello!

~$ curl localhost:2222/app2
appid: 2222 app2 page: says hello!

~$ curl localhost:2222/admin
appid: 2222 ADMIN page: very few people should see this

Tag summary

Content type

Image

Digest

Size

27.5 MB

Last updated

over 5 years ago

docker pull pengshp/proxy-app