Site preview (real ip address)

Hi, my site is using the main domain - https://site.com
discourse subdomain - https://community.site.com
When I am posting my main site https://site.com in thread reply or creating a new thread/post, I can see this:
Sorry, we were unable to generate a preview for this web page, because the server '47.209.132.18' could not be found. Instead of a preview, only a link will appear in your post.
Preview showing my real server IP address :flushed:

discourse dont work with IP addresses.

go edit /var/discourse/containers/app.yml

and make sure DISCOURSE_HOSTNAME: is set to community.site.com

2 Likes

my /var/discourse/containers/app.yml
DISCOURSE_HOSTNAME:'community. site.com

is should be DISCOURSE_HOSTNAME: community.site.com

For your forum instance, is the DNS set up as a URL Redirect or an A record?

If it’s a redirect then that’s why. It’s resolving the domain to be an IP redirect and giving you the IP warning.