angristan / feedbin-docker

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

Feedbin API #64

Closed cf-vnkr closed 3 years ago

cf-vnkr commented 3 years ago

Thank you for this project, it's amazing.

Could you please advise if this configuration supports Feddbin API? It doesn't seem to expose the separate API endpoint. Is there a different URL (from the default api.feedbin.com) that is exposing the API?

cf-vnkr commented 3 years ago

Looking at Feebin's code I believe it's looking at api. host name for API requests but simply adding this host name to the config of this project doesn't help - the server returns "Blocked host" error.

karlprieb commented 3 years ago

Hey I had to add the follow header on my reverse proxy to trick the server so I can access the api:

reverse_proxy feedbin-web:3000 {
    header_up Host api.feedbin.com
}

Also on the .env file add FEEDBIN_HOST=your-host.com,api.feedbin.com :)

karlprieb commented 3 years ago

@cf-vnkr can we close this issue as this is already built-in on this project? https://github.com/angristan/feedbin-docker/blob/915b7bac52ebc401256ee13043fb1d993095e24a/caddy/example.Caddyfile#L39

cf-vnkr commented 3 years ago

A qustion if I may: in this case what do you set for FEEDBIN_API_HOST?

karlprieb commented 3 years ago

Anything that you want... it can't be the same domain as the main domain. I use api. for example.