From 9fe614d2de24d541e5c4a830a661e9a83cad98ed Mon Sep 17 00:00:00 2001 From: ace Date: Sat, 25 May 2024 18:11:27 +0300 Subject: [PATCH] peertube: bump to v6.1.0, helm chart v0.3.4 --- peertube/Chart.yaml | 4 +- peertube/values.yaml | 91 ++++++++++++++++++++++++++++++++++++++------ 2 files changed, 81 insertions(+), 14 deletions(-) diff --git a/peertube/Chart.yaml b/peertube/Chart.yaml index 04556ce..27253f2 100644 --- a/peertube/Chart.yaml +++ b/peertube/Chart.yaml @@ -11,5 +11,5 @@ dependencies: repository: https://charts.bitnami.com/bitnami version: 18.4.0 type: application -version: 0.3.3 -appVersion: 6.0.4 +version: 0.3.4 +appVersion: 6.1.0 diff --git a/peertube/values.yaml b/peertube/values.yaml index 73b97a9..81a3092 100644 --- a/peertube/values.yaml +++ b/peertube/values.yaml @@ -8,7 +8,7 @@ image: repository: chocobozzz/peertube pullPolicy: IfNotPresent # Overrides the image tag whose default is the chart appVersion. - tag: "v6.0.4-bookworm" + tag: "v6.1.0-bookworm" imagePullSecrets: [] nameOverride: "" @@ -158,6 +158,7 @@ configAsCode: avatars: '/var/www/peertube/storage/avatars/' web_videos: '/var/www/peertube/storage/web-videos/' streaming_playlists: '/var/www/peertube/storage/streaming-playlists/' + original_video_files: '/var/www/peertube/storage/original-video-files/' redundancy: '/var/www/peertube/storage/redundancy/' logs: '/var/www/peertube/storage/logs/' previews: '/var/www/peertube/storage/previews/' @@ -185,6 +186,7 @@ configAsCode: object_storage: enabled: false # Without protocol, will default to HTTPS + # Your S3 provider must support virtual hosting of buckets as PeerTube doesn't support path style requests endpoint: '' # 's3.amazonaws.com' or 's3.fr-par.scw.cloud' for example region: 'us-east-1' upload_acl: @@ -215,11 +217,24 @@ configAsCode: # Base url for object URL generation, scheme and host will be replaced by this URL # Useful when you want to use a CDN/external proxy base_url: '' # Example: 'https://mirror.example.com' - # Same settings but for web videos + # PeerTube makes many small requests to the object storage provider to upload/delete/update live chunks + # which can be a problem depending on your object storage provider + # You can also choose to disable this feature to reduce live streams latency + # Live stream replays are not affected by this setting, so they are uploaded in object storage as regular VOD videos + store_live_streams: true web_videos: bucket_name: 'web-videos' prefix: '' base_url: '' + user_exports: + bucket_name: 'user-exports' + prefix: '' + base_url: '' + # Same settings but for original video files + original_video_files: + bucket_name: 'original-video-files' + prefix: '' + base_url: '' log: level: 'info' # 'debug' | 'info' | 'warn' | 'error' rotation: @@ -239,9 +254,11 @@ configAsCode: open_telemetry: metrics: enabled: false + # How often viewers send playback stats to server + playback_stats_interval: '15 seconds' http_request_duration: # You can disable HTTP request duration metric that can have a high tag cardinality - enabled: true + enabled: false # Create a prometheus exporter server on this port so prometheus server can scrape PeerTube metrics prometheus_exporter: hostname: '127.0.0.1' @@ -329,12 +346,31 @@ configAsCode: max_age: '30 days' # PeerTube buffers local video views before updating and federating the video local_buffer_update_interval: '30 minutes' - ip_view_expiration: '1 hour' + # How long does it take to count again a view from the same user + view_expiration: '1 hour' + # Minimum amount of time the viewer has to watch the video before PeerTube adds a view + count_view_after: '10 seconds' + # Player can send a session id string to track the user + # Since this can be spoofed by users to create fake views, you have the option to disable this feature + # If disabled, PeerTube will use the IP address to track the same user (default behavior before PeerTube 6.1) + trust_viewer_session_id: true + # How often the web browser sends "is watching" information to the server + # Increase the value or set null to disable it if you plan to have many viewers + watching_interval: + # Non logged-in viewers + anonymous: '5 seconds' + # Logged-in users of your instance + # Unlike anonymous viewers, this endpoint is also used to store the "last watched video timecode" for your users + # Increasing this value reduces the accuracy of the video resume + users: '5 seconds' + # Used to get country location of views of local videos geo_ip: enabled: true country: database_url: 'https://dbip.mirror.framasoft.org/files/dbip-country-lite-latest.mmdb' + city: + database_url: 'https://dbip.mirror.framasoft.org/files/dbip-city-lite-latest.mmdb' plugins: # The website PeerTube will ask for available PeerTube plugins and themes # This is an unmoderated plugin index, so only install plugins/themes you trust @@ -383,6 +419,17 @@ configAsCode: # Increasing this value will increase CPU and memory usage when generating the thumbnail, especially for high video resolution # Minimum value is 2 frames_to_analyze: 50 + stats: + # Display registration requests stats (average response time, total requests...) + registration_requests: + enabled: true + # Display abuses stats (average response time, total abuses...) + abuses: + enabled: true + total_moderators: + enabled: true + total_admins: + enabled: true ############################################################################### # # From this point, all the following keys can be overridden by the web interface @@ -427,7 +474,8 @@ configAsCode: videos: # Enable or disable video history by default for new users. enabled: true - # Default value of maximum video bytes the user can upload (does not take into account transcoded files) + # Default value of maximum video bytes the user can upload + # Does not take into account transcoded files or account export archives (that can include user uploaded files) # Byte format is supported ("1GB" etc) # -1 == unlimited video_quota: -1 @@ -440,6 +488,10 @@ configAsCode: # Please, do not disable transcoding since many uploaded videos will not work transcoding: enabled: true + original_file: + # If false the uploaded file is deleted after transcoding + # If yes it is not deleted but moved in a dedicated folder or object storage + keep: false # Allow your users to upload .mkv, .mov, .avi, .wmv, .flv, .f4v, .3g2, .3gp, .mts, m2ts, .mxf, .nut videos allow_additional_extensions: true # If a user uploads an audio file, PeerTube will create a video by merging the preview file and the audio file @@ -608,6 +660,20 @@ configAsCode: videos_limit_per_synchronization: 10 # Max number of videos to import when the user asks for full sync full_sync_videos_limit: 1000 + users: + # Video quota is checked on import so the user doesn't upload a too big archive file + # Video quota (daily quota is not taken into account) is also checked for each video when PeerTube is processing the import + enabled: true + export: + users: + # Allow users to export their PeerTube data in a .zip for backup or re-import + # Only one export at a time is allowed per user + enabled: true + # Max size of the current user quota to accept or not the export + # Goal of this setting is to not store too big archive file on your server disk + max_user_video_quota: 10GB + # How long PeerTube should keep the user export + export_expiration: '2 days' auto_blacklist: # New videos automatically blacklisted so moderators can review before publishing videos: @@ -683,13 +749,12 @@ configAsCode: Contact: https://github.com/Chocobozzz/PeerTube/blob/develop/SECURITY.md Expires: 2025-12-31T11:00:00.000Z' services: - # Cards configuration to format video in Twitter + # Cards configuration to format video in Twitter/X + # All other social media (Facebook, Mastodon, etc.) are supported out of the box twitter: - username: '@Chocobozzz' # Indicates the Twitter account for the website or platform on which the content was published - # If true, a video player will be embedded in the Twitter feed on PeerTube video share - # If false, we use an image link card that will redirect on your PeerTube instance - # Change it to `true`, and then test on https://cards-dev.twitter.com/validator to see if you are whitelisted - whitelisted: false + # Indicates the Twitter/X account for the website or platform where the content was published + # This is just an information injected in HTML that is required by Twitter/X + username: '@Chocobozzz' followers: instance: # Allow or not other instances to follow yours @@ -757,7 +822,9 @@ configAsCode: # If you enable only one external auth plugin # You can automatically redirect your users on this external platform when they click on the login button redirect_on_single_external_auth: false - + storyboards: + # Generate storyboards of local videos using ffmpeg so users can see the video preview in the player while scrubbing the video + enabled: true # Set initial root password #env: