Dear community,
this is my first post, and I’d like to express my thank for caddy, a great software that has made my life much easier.
Note: it seems I cannot post some words so I had to keep changing the domain-related words to site1-domain-abc
and the likes till it’s accepted. My apology for this.
Update: I updated the diagram to include the caddy config
1. The problem I’m having:
I have 1 server and 2 ISP lines at home. I would like to make the server available over those 2 ISP lines to increase availability. The setup looks as follows:
3. Caddy version:
v2.7.5
4. How I installed and ran Caddy:
I installed caddy from official Caddy apt repo
a. System environment:
Ubuntu 22.04, without docker
d. My complete Caddy config:
# on site1
site1 .domain-abc {
reverse_proxy local-server
}
# on site2
site2 .domain-abc {
reverse_proxy local-server
}
# on site
site.domain-abc {
reverse_proxy {
to site1-domain-abc
to site2-domain-abc
header_up Host {upstream_hostport}
lb_policy round_robin
fail_duration 3s
}
}
This setup seems to work, however from the posts I found in the forum, the best practice seems to forward port 80 and 443 on the load balancer, and do TLS termination only at site1 and site2.
I have been using caddy for sometime for simple scenarios, but this is the first time I attempt to setup load balancing with https upstreams.
Ideally I would like to do TSL termination for site.domain-abc only, and get rid of site{1,2}.domain-abc completely. But I don’t know how to do that. Any hint to get started would be much appreciated.