max_files: 20
anonymize_ip: false
log_ping_requests: true
+ log_tracker_unknown_infohash: true
prettify_sql: false
+# Highly experimental support of Open Telemetry
+open_telemetry:
+ metrics:
+ enabled: false
+
+ # Create a prometheus exporter server on this port so prometheus server can scrape PeerTube metrics
+ prometheus_exporter:
+ port: 9091
+
+ tracing:
+ enabled: false
+
+ # Send traces to a Jaeger compatible endpoint
+ jaeger_exporter:
+ endpoint: ''
+
trending:
videos:
interval_days: 7 # Compute trending videos for the last x days
algorithms:
enabled:
- - 'best' # adaptation of Reddit's 'Best' algorithm (Hot minus History)
- 'hot' # adaptation of Reddit's 'Hot' algorithm
- 'most-viewed' # default, used initially by PeerTube as the trending page
- 'most-liked'
# Set this to false if you don't want to allow config edition in the web interface by instance admins
allowed: true
+# XML, Atom or JSON feeds
+feeds:
+ videos:
+ # Default number of videos displayed in feeds
+ count: 20
+
+ comments:
+ # Default number of comments displayed in feeds
+ count: 20
+
cache:
previews:
size: 500 # Max number of previews you want to cache
# Amount of import jobs to execute in parallel
concurrency: 1
+ # Set a custom video import timeout to not block import queue
+ timeout: '2 hours'
+
# Classic HTTP or all sites supported by youtube-dl https://rg3.github.io/youtube-dl/supportedsites.html
http:
# We recommend to use a HTTP proxy if you enable HTTP import to prevent private URL access from this server
# Examples:
# * https://api.github.com/repos/ytdl-org/youtube-dl/releases
# * https://api.github.com/repos/yt-dlp/yt-dlp/releases
- url: 'https://yt-dl.org/downloads/latest/youtube-dl'
+ # * https://yt-dl.org/downloads/latest/youtube-dl
+ url: 'https://api.github.com/repos/yt-dlp/yt-dlp/releases'
- # youtube-dl binary name
- # yt-dlp is also supported
- name: 'youtube-dl'
+ # Release binary name: 'yt-dlp' or 'youtube-dl'
+ name: 'yt-dlp'
# Path to the python binary to execute for youtube-dl or yt-dlp
python_path: '/usr/bin/python3'