Forem Creators and Builders 🌱

Itz_Dr_Li
Itz_Dr_Li

Posted on

How to whitelist a hostname? (Selfhost)

Hi, I'm new to Forem and I love it. But after I followed the document and installed forem with container Containerized setup with dip gem, and I started the forem by using dip rails s. Then the console shows [1] * Listening on http://0.0.0.0:3000, so I opened my own domain that resolved to the server and I met this:

Image description

So I tried to edit the .env file and restart the server also the forem, still the same. And I cannot find any other files related to the host configuration. So can I have some help here? And apoligize for my bad English.

Top comments (4)

Collapse
 
ben profile image
Ben Halpern

In development.rb you can allow hosts like

config.hosts << "www.example.com"
Enter fullscreen mode Exit fullscreen mode

Good luck!

Collapse
 
wojtekxtx profile image
Wojtek X

Nice, but have one question: is this accepting arrays?

Collapse
 
mickcod profile image
Georgexp97

Great post

Collapse
 
codingmaster97 profile image
gamerfogngc1569snake

Intresting post