diff options
| author | syeopite <70992037+syeopite@users.noreply.github.com> | 2025-03-12 09:11:17 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-12 10:11:17 +0100 |
| commit | 5c8b4eb37902faad2aeb88af78b7046f28492dc3 (patch) | |
| tree | 2b97129c402410c79557988373f386a6c5812a15 /src | |
| parent | adcdb8cb92bbf61bac46102eff026593d0bc87b0 (diff) | |
| download | invidious-5c8b4eb37902faad2aeb88af78b7046f28492dc3.tar.gz invidious-5c8b4eb37902faad2aeb88af78b7046f28492dc3.tar.bz2 invidious-5c8b4eb37902faad2aeb88af78b7046f28492dc3.zip | |
Warn when `po_token`, `visitor_data` and/or `inv-sig-helper` is not configured (#5202)
* Warn when required configs for playback is missing
* Add link to documentation in warnings
* Direct users to /installation instead
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious.cr | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/invidious.cr b/src/invidious.cr index 12ffad33..7b76c886 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -167,9 +167,16 @@ DECRYPT_FUNCTION = if sig_helper_address = CONFIG.signature_server.presence IV::DecryptFunction.new(sig_helper_address) else + LOGGER.warn("WARNING: inv-sig-helper is required for video playback. For more information see https://docs.invidious.io/installation") nil end +{% for field in %w(po_token visitor_data) %} + if !CONFIG.{{field.id}} + LOGGER.warn("WARNING: {{field.id}} is required to view and playback videos. For more information see https://docs.invidious.io/installation") + end +{% end %} + # Start jobs if CONFIG.channel_threads > 0 |
