consul-proxy
An OTP application
Build
rebar3 compile
Testing
while true ; do echo -e "HTTP/1.1 200 OK\r\nConnection:close\r\n\r\n1:$(date)" | nc -l 8081 ; done
while true ; do echo -e "HTTP/1.1 200 OK\r\nConnection:close\r\n\r\n2:$(date)" | nc -l 8082 ; done
Running
docker run --name consul-proxy -d --net=host -e CONSUL-PROXY_CONSUL_URL="\"http://10.1.4.80:8500\"" -p 80:8080 ehedenst/consul-proxy:arm
Todo
- Allow explicit setting of upstream/downstream headers