New discourse install has broken image URLs to localhost

unsupported-install

(张惠) #1

image

this is my nginx conf

image


(Alan Tan) #2

You’ll have to set Sitesetting.port = 4000


(张惠) #4

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


(Alan Tan) #5

This should do the trick.

rails console
SiteSetting.port = 4000

(张惠) #7

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


(Alan Tan) #8

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


(张惠) #9

i’m not using docker .


(Alan Tan) #10

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


(张惠) #11

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


(张惠) #12

thank for your help .