Can't enable https with snap caddy on virtual server

I’m following these instructions to install in a free Oracle server but I’m stuck at the step where I’m meant to enable https for caddy/

$ 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 ...)

After looking around I’ve found other similar posts where the suggested solution is to verify that the output of some commands show the public IP. The dig command runs fine for me:

$ dig |grep -A1 ";; ANSWER SECTION:" |tail -1 | awk '{print $5}'

You can easily verify that with $ ping The problem seems that the snap hook validates the IP using Well, here’s what that service gives me:

$ curl
<!DOCTYPE html>
<html lang=en>
  <meta charset=utf-8>
  <meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">
  <title>Error 403 (Forbidden)!!1</title>
    *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(// 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(// no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(// no-repeat 0% 0%/100% 100%;-moz-border-image:url(// 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(// no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}
  <a href=//><span id=logo aria-label=Google></span></a>
  <p><b>403.</b> <ins>That’s an error.</ins>
  <p>Access is forbidden.  <ins>That’s all we know.</ins>

So it seems I’m SOL since is not willing to work. Is there any possibility of forcing that https setting without going the full manual installation/configuration? I have also links installed and I can easily browse to any other website on the net, but I can verify visually simply does not like the Oracle VPS IP.

Had a similar issue and adding this file fixed it for me

nano /var/snap/rocketchat-server/current/Caddyfile
proxy / localhost:3000 {

Save and try enabling again.