Add enableRSS setting in config file

Useful for instance owners who want to disable the RSS endpoint for
reasons such as abuse and not enough server resources to handle heavy
network traffic through that endpoint.

Resolves #437
This commit is contained in:
Timothy Bautista
2021-10-02 13:15:52 -06:00
parent 5caf77481f
commit 2edf54d5b3
5 changed files with 11 additions and 7 deletions

View File

@ -46,7 +46,8 @@ createStatusRouter(cfg)
createSearchRouter(cfg)
createMediaRouter(cfg)
createEmbedRouter(cfg)
createRssRouter(cfg)
if cfg.enableRSS:
createRssRouter(cfg)
settings:
port = Port(cfg.port)