noinnion / newsplus

News+ is a simple, fast and intuitive feed/rss reader for Android, featuring beautiful themes, podcast support and full offline support.
http://noinnion.com/newsplus
358 stars 77 forks source link

GUIDE: How to use news plus with FreshRSS secured behind cloudflare access #114

Closed milindpatel63 closed 2 years ago

milindpatel63 commented 2 years ago

For that 1 other guy like me who has exposed his freshRSS instance publically via cloudflare tunnel and secured it using cloudflare access. If you want to use that with news+ and google reader extension,

Create a service token for your cloudflare access Go to google reader extension source code files and open it in android studio. Modify GoogleReaderClient activity add following line of code at line no. 175 just after post.setHeader

    //cloudflare access service token
    post.setHeader("CF-Access-Client-Id", "yourclientid");
    post.setHeader("CF-Access-Client-Secret", "yoursecret");

also at line no. 227 just after get.setHeader

    //cloudflare access service token
    get.setHeader("CF-Access-Client-Id", "yourclientid");
    get.setHeader("CF-Access-Client-Secret", "yoursecret");

And, compile and install the apk on your device. (Y)

Alkarex commented 2 years ago

I am not using Cloudflare myself, but maybe some other FreshRSS users could be interested, so if you ever publish your fork, let us know (especially if you make a config / option to set extra headers in a generic way)