caddy -version)?https://github.com/mholt/caddy/commit/286d8d1e898c19d0b678892e908156fb45d2f369 on OSX 10.11
curl -i http://127.0.0.1:2017/
# front facing webserver
http://127.0.0.1:2017 {
tls off
root ./www_root/
# gzip
browse
ext .html
log ./cdy_test_2017_access.log
errors ./cdy_test_2017_errors.log
#errors visible
esi {
cmd_header_name X-Esi-Cmd
log_file ./cdy_test_2017_debug.log
log_level debug
resources ./CaddyfileResources.xml
}
}
# micro service (ms) end point
http://127.0.0.1:3017 {
tls off
root ./www_root/
log ./cdy_test_3017_access.log
errors ./cdy_test_3017_errors.log
}
https://github.com/SchumacherFM/caddyesi/blob/master/Caddyfile
user at mbp in ~/GoPro/src/github.com/SchumacherFM/caddyesi on master [+!]
$ go run -tags esiall $GOPATH/src/github.com/mholt/caddy/caddy/main.go -conf ./Caddyfile
An HTML page and integration tests are passing
~10-20s loading and then downloading nothing or some tiny weird bytes.
$ hexdump -C page_grpc.html
00000000 15 03 01 00 02 02 0a |.......|
00000007
Content of page_grpc.html located here: https://github.com/SchumacherFM/caddyesi/blob/master/www_root/page_grpc.html
Same results when compiling with master branch latest commit.
The MITM feature works perfect.
Will investigate :)
Can you check @SchumacherFM this fix: https://github.com/mholt/caddy/pull/1456 ?
Don't worry about build failing (forgot to run gofmt 馃槶 )
Works! Please merge