Error: Your public IP doesn't match the one resolved for caddy-url, disabling https

Description

In using Auto SSL through Caddy, I get this error… “Error: Your public IP doesn’t match the one resolved for caddy-url, disabling https”

I have ifconfig’d my server, checked the ip resolution from external servers… My public IP DOES match the url I fed to the command… Is there something I’m missing?

(I concealed my domain in the command, replaced it with https://my.domain.com)
root@enter:~# sudo snap set rocketchat-server caddy-url=https://my.domain.com
root@enter:~# sudo snap set rocketchat-server caddy-enable
error: invalid configuration: “caddy-enable” (want key=value)
root@enter:~# sudo snap set rocketchat-server caddy=enable
root@enter:~# sudo snap set rocketchat-server https=enable
error: cannot perform the following tasks:

  • Run configure hook of “rocketchat-server” snap (run hook “configure”: Error: Your public IP doesn’t match the one resolved for caddy-url, disabling https …)

Server Setup Information

  • Version of Rocket.Chat Server: latest snap version (not sure, cannot find info on version)
  • Operating System: Ubuntu 20.10
  • Deployment Method: Snap
  • Number of Running Instances: 1
  • DB Replicaset Oplog:
  • NodeJS Version: (whatever snap is using)
  • MongoDB Version: (snap)
  • Proxy: none
  • Firewalls involved: none

My friend and I have had the same issue. Makes me wonder if something in the snap is broken. Did you find a solution?

I ran in to this same thing.
I used NGINX proxy and installed certbot manually.