Skip to content

sb-cloud-race/sb-openresty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a reverse http proxy poc.

Used to translate xml to json, and json to xml.


Client talks to proxy sending and receiving xml.

Proxy talks to back-end sending and receiving json.


Getting started:

build docker image

docker build . -t openresty-sbrw:latest

run container

docker run -p 8080:80 openresty-sbrw:latest

test some request

curl --compressed -v http://127.0.0.1:8080/soapbox/Engine.svc/systeminfo

Running real backend

start your json api backend somewhere, at some port (ex. 192.168.0.2:8888/myapi)

run container with real backend config:

docker run -p 8080:80 -e API_PATH=myapi -e API_URL=http://192.168.0.2:8888 openresty-sbrw:latest

test some request

curl --compressed -v http://127.0.0.1:8080/soapbox/Engine.svc/systeminfo

refs:

https://openresty.org/

https://github.com/manoelcampos/xml2lua


About

proxy translator, from xml2json and json2xml

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published