Multiple Wildcards - Is it possible?

1. The problem I’m having:

I want to know if it is possible to use more than one wildcard in a file if you are having it pull the cert automatically using the cloudflare add-on with reverse proxy setup. I have it working with just one wildcard currently.

Example:

I already have *.maindomainA.com wildcard up and running.
Is it possible to add a second wildcard configuration as well?

*.maindomainA.com
*.maindomainB.com

2. Error messages and/or full log output:

PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.

3. Caddy version:

4. How I installed and ran Caddy:

a. System environment:

b. Command:

PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.

c. Service/unit/compose file:

*.maindomainA.com {
	tls {
		dns cloudflare XXXXXXXXXXXXXXXXXXXXXXXXXX
		resolvers 1.1.1.1
	}
	reverse_proxy /tautulli* 192.168.55.205:8181
	reverse_proxy /radarr* 192.168.55.207:7878
	reverse_proxy /sonarr* 192.168.55.207:8989
	reverse_proxy /info* 192.168.55.205:5960
	reverse_proxy /lidarr* 192.168.55.207:8686
	reverse_proxy 192.168.55.205:5055
	@app host app.maindomainA.com
	handle @app {
		reverse_proxy 192.168.55.205:32400
	}
	import /etc/caddy/caddy_security.conf
}

d. My complete Caddy config:

PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.

5. Links to relevant resources:

Yes

1 Like