Images won't display without a domain name

(huigs) #1

I changed port to 8001,no nginx, congfig as below

DISCOURSE_HOSTNAME: ubuntu1604server
  - "8001:80"   # http
  - "443:443" # https

then I access ip:8001, site is OK,but after I upload the picture, it will disppear later.

And I found the URL without port


if the url is like this add port:8001


the picture will display normanlly

What can i do now

Thx a lot

(Bhanu Sharma) #2

You have an invalid hostname!
Ps: discourse doesn’t work without FQDN.

(huigs) #3

Ah I see thanks a lot

(Jeff Atwood) #4