Caddy on OPNsense

Started by spetrillo, May 05, 2025, 06:35:38 PM

Previous topic - Next topic
Hello all,

I am trying to allow a personal website out via Caddy as my reverse proxy. With Caddy enabled I am able to connect to the website from my internal PC. If I try to hit on the Internet its not responding. When I look at the Caddy log I only see this:

2025-05-05T12:33:11-04:00   Informational   caddy   "info","ts":"2025-05-05T16:33:11Z","msg":"serving initial configuration"}   
2025-05-05T12:33:11-04:00   Informational   caddy   "info","ts":"2025-05-05T16:33:11Z","msg":"autosaved config (load with --resume flag)","file":"/var/db/caddy/config/caddy/autosave.json"}   
2025-05-05T12:33:11-04:00   Informational   caddy   "info","ts":"2025-05-05T16:33:11Z","logger":"admin","msg":"admin endpoint started","address":"unix//var/run/caddy/caddy.sock|0220","enforce_origin":false,"origins":["","//127.0.0.1","//::1"]}   


I have attached the Caddyfile and JSON. I never see it talk outbound to get a certificate. Not sure what I missed.

Thanks,
Steve

What have you selected as the protocol for your "Domain"? If it's not "https", there'll be no certificate to get.

Have you added a firewall rule on your WAN interface to allow access from outside?