DIYgod / RSSHub

🧡 Everything is RSSible
https://docs.rsshub.app
MIT License
32.39k stars 7.21k forks source link

Make `allowDomain` in WordPress to be configurable #11684

Open JasonHK opened 1 year ago

JasonHK commented 1 year ago

What feature is it?

Make allowDomain configurable via environment variables.

What problem does this feature solve?

Currently, the allowDomain can only be changed by modifying the source code. The is not good if you deployed using Docker.

Additional description

No response

This is not a duplicated feature request or new RSS proposal

TonyRL commented 1 year ago

https://github.com/DIYgod/RSSHub/blob/c32a46f80afc74447fa17dc949edb57eeebd41a4/lib/routes/blogs/wordpress.js#L6-L8 https://github.com/DIYgod/RSSHub/blob/c32a46f80afc74447fa17dc949edb57eeebd41a4/lib/config.js#L97-L101

JasonHK commented 1 year ago

https://github.com/DIYgod/RSSHub/blob/c32a46f80afc74447fa17dc949edb57eeebd41a4/lib/routes/blogs/wordpress.js#L6-L8

https://github.com/DIYgod/RSSHub/blob/c32a46f80afc74447fa17dc949edb57eeebd41a4/lib/config.js#L97-L101

@TonyRL Umm... What if I wnat to allow only a set of domains?