Caddy Domain/Subdomain Usage

Hello all,

I am using Caddy as a plugin to OPNsense. In the Services/Caddy Web Server/Reverse Proxy/Domains section I have added my domain without a *. Is that ok or should I add the *? Second with just the domain added should I use the subdomains section to call out each service name?

Thanks,
Steve

If you don’t plan to use the DNS-01 challenge and a wildcard certificate, just create all your domains as base domains and do not use subdomains.

e.g.
example.com
sub1.example.com
sub2.example.com

Then for each of them create a matching handler that will create the reverse proxy to your upstream destination.

2 Likes

In this use case I will have to use DNS-01 since i have a DDNS setup.

DNS-01 challenge is for getting certificates. It has nothing to do with dynamic DNS.

Everything is explained in detail here:

https://docs.opnsense.org/manual/how-tos/caddy.html

Check out the dynamic DNS explanation in these docs.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.