Hi guys, I have two different apps that have thousands of domains each. I want use caddy server to listen for any host on two different IP address (one for each app) and proxy to my apps.
I using a Caddyfile like this:
:80 :443 {
bind yyy.yyy.yyy.yyy
proxy / localhost:4000 {
websocket
policy ip_hash
transparent
}
tls sample@mail.com
tls {
max_certs 5000
}
}
:80 :443 {
bind xxx.xxx.xxx.xxx
proxy / localhost:3000 {
websocket
policy ip_hash
transparent
}
tls sample@mail.com
tls {
max_certs 5000
}
}
But I get next error message: duplicate site address: :80
Exist a way to wildcard hosts to different IP address on Caddyfile?