wemake-services / caddy-gen

Automated Caddy reverse proxy for docker containers
https://hub.docker.com/r/wemakeservices/caddy-gen
MIT License
250 stars 24 forks source link

Fix travis #42

Closed tonsV2 closed 1 year ago

sobolevn commented 4 years ago

Maybe we can try https://github.com/wemake-services/caddy-gen/blob/master/docker-gen/templates/Caddyfile.tmpl#L5 ?

tonsV2 commented 4 years ago

Locally it works just fine, port 2015 returns 404. On travis it returns 400. I don't know why.

sobolevn commented 4 years ago

@tonsV2 maybe we can have a look at the response headers and body, not only status code? We can also enable logs on caddy's side to figure this out. It might be a bug!

tonsV2 commented 4 years ago

Yeah, Ideally we should assert all open ports. I've added the verbose flag to the curl command but it gives little information. I've tried to enable debugging on Caddy but I can't seem to get it working. Granted I haven't put a lot of effort into it. But do you have any idea about how to do it?