feat: videoplayback proxying

adds support for proxying videos through the instance
the support is configurable, and disabled by default
This commit is contained in:
2025-10-05 19:59:23 +02:00
parent 002e3cba33
commit 2b24fc2906
5 changed files with 73 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
[general]
db_file_path = "/path/to/ythdd_db.sqlite" # Preferably stored on an SSD.
db_file_path = "ythdd_db.sqlite" # Path to the databse file, preferably stored on an SSD.
video_storage_directory_path = "/path/to/videos/" # Path to video vault.
is_proxied = false # Set to true if running behind reverse proxy.
public_facing_url = "http://127.0.0.1:5000/" # Used for URL rewriting. Note the trailing backslash /.
@@ -16,7 +16,9 @@ cookies_path = "" # Leave empty for none.
preferred_extractor = "" # Leave empty for default (android_vr).
[proxy]
user-agent = "" # Leave empty for default (Firefox ESR).
user-agent = "" # Leave empty for default (Firefox ESR).
allow_proxying_videos = false # Whether to allow video proxying through the instance (traffic-intensive).
match_initcwndbps = true # Experimental: matches proxying speed to the one suggested by Innertube (may help avoid being ratelimited/banned).
[admin]
# List of users with admin priviledges.