Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vietj/netty-openssl-custom-trustmanager-verification-error


https://github.com/vietj/netty-openssl-custom-trustmanager-verification-error

Last synced: 5 days ago
JSON representation

Awesome Lists containing this project

README

        

# Vert.x Http Proxy

A HTTP reverse proxy based on Vert.x, it aims to implement the reverse proxy logic and be reusable, so one does not need to care about the proxy logic and can focus rather on higher concerns.

# License

Eclipse Public License - Version 1.0 / Apache License - Version 2.0

# Usage

_package_ and then run the _fatjar_ :

````
> mvn package
> java -jar target/vertx-reverse-proxy-3.3.0-SNAPSHOT.jar
````

Docker containers are discovered using docker labels, for example:

````
docker run --rm -p 8082:8080 -l service.type=http.endpoint -l service.route=/hello ehazlett/docker-demo
````

Then backend server will be accessible on the proxy server under the `/hello` route.

## Behavior notes

The client posts a body and the backend closes the connection before upload is complete.
The client gets a `502` response and its connection is closed.

The client posts a body and the backend receives parts of the body then the client closes the connectino before
the upload is complete. The backend gets its connection closed.