Alright, I can get it to work right now. Thanks.
But couple more questions:
- So the way it works with SSL and reverse proxy, is that I also need to put the certificate on caddy server right. (Caddyfile below)
- And it seems like when using docker container in
reverse_proxydirective, thecontainer_namemust havehttps://protocol, if not caddy send me500error - What is read_buffer, and why do I need that value
mydomain.dev {
tls /cert/mydomain.dev.pem /cert/mydomain.dev.key # <-- question #1
reverse_proxy {
to https://backend_container # <-- question #2
transport http {
tls
tls_insecure_skip_verify
read_buffer 8192 # <-- question #3
}
}
}