angristan / feedbin-docker

Self-host your own Feedbin RSS reader in Docker
MIT License
251 stars 35 forks source link

Blocked host #42

Open flosoft opened 3 years ago

flosoft commented 3 years ago

I've been trying to get Feedbin up and running for the last day behind Traefik and am getting stuck firing up the feedbin-web instance.

I keep getting the following error on the webpage:

Blocked host: feedbin.DOMAIN.TLD
To allow requests to feedbin.DOMAIN.TLD, add the following to your environment configuration:

config.hosts << "feedbin.DOMAIN.TLD"

I checked the environment variable, and it's correctly set to feedbin.domain.tld in the container. I also tried editing https://github.com/feedbin/feedbin/blob/master/config/environments/production.rb#L3 and restarting the container without any luck.

flosoft commented 3 years ago

The only way around this that I've found is adding config.hosts.clear to the production environment, effectively disabling the feature.

anibal-aguila commented 3 years ago

Hi @flosoft

From .env FEEDBIN_HOST seems to allow multiple domains splitted by comma.

image

In order to get up and running both, the public access from feedbin.domain.tld and the healthcheck docker feature you need to set up this environment in .env file:

FEEDBIN_HOST=127.0.0.1,feedbin.domain.tld

in your docker-compose.yml also include

    healthcheck:
      test: ["CMD", "curl", "-f", "http://127.0.0.1:3000"]

Hope this solve the issue