New discourse install has broken image URLs to localhost

image

this is my nginx conf

image

You’ll have to set Sitesetting.port = 4000

2 Likes

I’m new to rails . which file write this set ?
I run discourse -> bundle exec rails server -p 4000 .

This should do the trick.

rails console
SiteSetting.port = 4000
1 Like

after set that my website dont work . should i change other setting , nginx ??

Are you using this in development or a docker based install?

i’m not using docker .

Sorry we only provide support for our official docker based installs. My guess here is that your nginx proxy has not been configured correctly.

1 Like

how configured correctly ? i search a lot but did’t sloved . so i come here . any suggest to nginx config ?

thank for your help .