Hi,
I have the following configuration working perfectly:
- two firewall rules that redirect ports 80/443 to a "proxy" host
- caddy configured on "proxy" which redirects to multiple hosts depending on the URL.
I want to transfer this configuration to the caddy OpnSense plugin. Following the documentation, I created the configuration and deleted the firewall rules, but the plugin is unable to retrieve the certificates. This is strange because in the previous configuration, Caddy retrieved the certificate directly from the destination and didn't attempt to obtain a new one from Let's Encrypt.
Old config
OPNSense config
I have the following configuration working perfectly:
- two firewall rules that redirect ports 80/443 to a "proxy" host
- caddy configured on "proxy" which redirects to multiple hosts depending on the URL.
I want to transfer this configuration to the caddy OpnSense plugin. Following the documentation, I created the configuration and deleted the firewall rules, but the plugin is unable to retrieve the certificates. This is strange because in the previous configuration, Caddy retrieved the certificate directly from the destination and didn't attempt to obtain a new one from Let's Encrypt.
Old config
Code Select
jeu.ericdelcamp.fr {
reverse_proxy web3.domain.lan {
header_up Host {upstream_hostport}
}
}OPNSense config
Code Select
http://jeu.ericdelcamp.fr {
handle /.well-known/acme-challenge/* {
reverse_proxy web3.domain.lan
}
handle {
redir https://{host}{uri} 308
}
}Code Select
jeu.ericdelcamp.fr {
handle {
reverse_proxy https://web3.domain.lan {
}
}
}
"