Issues with using Caddy and LinkStack
Go to solution
Solved by Wzyss,
For anyone who comes across this, I got it figured out!
Turns out Caddy connects to services on the backend via HTTP. In most cases, this makes sense. However, in the case of using LinkStack, it has a self-signed cert and runs on HTTPS by default.
This would cause the "You're speaking plain HTTP to an SSL-enabled server port" error to crop up. So my obvious solution was to specify HTTPS instead in the Caddyfile, like so:
links.domain.com {
reverse_proxy https://localhost:50013
}
Unfortunately, I ran into more issues where Caddy did not accept the self-signed cert that LinkStack was providing. After many hours of struggling with this, I finally found the directive that bypasses TLS verification!
The config that works is now this:
links.domain.com {
reverse_proxy https://localhost:50013 {
transport http {
tls_insecure_skip_verify
}
}
}

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now