Skip to content

zregvart/camel-netty-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Repository on Quay Docker Repository on Docker Hub CircleCI

Camel Netty Proxy example

This is an example of using the Apache Camel integration framework to create a HTTP proxy using the Camel Netty component.

Any request that is received using the HTTP PROXY protocol, i.e specifying the absolute form for the request target will be forwarded to the target service with the HTTP body converted to uppercase. The response from the target service will be processed by converting it to uppercase and returned to the client.

There is no support for HTTP over TLS (https) protocol in this example.

Building and running

To build the Docker image execute:

$ docker build -t camel-netty-proxy .

To run the Docker image execute:

$ docker run --rm -p 8080:8080 camel-netty-proxy

To test using curl set the http_proxy environment variable, for example:

$ http_proxy=http://localhost:8080 curl -v http://neverssl.com

Running on OpenShift

To run on openshift, log in via the oc login command to the OpenShift cluster and position yourself in the project of choice using oc project <project> and run:

$ ./mvnw -Popenshift package

About

Camel Netty Proxy example

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages