feat: Detect videoplayback proxy from invidious-companion and add it to the CSP header

This commit is contained in:
Fijxu
2025-02-28 20:06:09 -03:00
parent f3d982a885
commit bceb7a61ef
4 changed files with 39 additions and 0 deletions

View File

@@ -222,6 +222,10 @@ else
LOGGER.info("jobs: Disabling RefreshSessionTokens job. Invidious will use the tokens that are on the configuration file")
end
if CONFIG.invidious_companion.present?
Invidious::Jobs.register Invidious::Jobs::CheckBackend.new
end
Invidious::Jobs.start_all
def popular_videos