X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Badmin%2Fconfig%2Fedit-custom-config%2Fedit-custom-config.component.html;h=9991e1f6338d0263bbbb402275e46cede30c949b;hb=76314386aeafdd6849b7b70c517779d6b2013473;hp=97900e5238441456064fd43ce675b87384b813a8;hpb=40e87e9ecc54e3513fb586928330a7855eb192c6;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html index 97900e523..9991e1f63 100644 --- a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html +++ b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html @@ -1,291 +1,798 @@
- + + + + + + + +
+
+
INSTANCE
+
+ +
+ +
+ + +
{{ formErrors.instance.name }}
+
+ +
+ + +
{{ formErrors.instance.shortDescription }}
+
+ +
+ + +
{{ formErrors.instance.description }}
+
+ +
+ + +
+ +
+
+ +
+ + +
+ +
+
+ +
+
- +
+
+
MODERATION & NSFW
+
+ Manage users to build a moderation team. +
+
+ +
+ +
+ + + This instance is dedicated to sensitive or NSFW content + + + + + Enabling it will allow other administrators to know that you are mainly federating sensitive content.

+ Moreover, the NSFW checkbox on video upload will be automatically checked by default. +
+
+
+
+ +
+ + + + + + With Do not list or Blur thumbnails, a confirmation will be requested to watch the video. + + + + +
+ +
+
{{ formErrors.instance.defaultNSFWPolicy }}
+
+ +
+ + +
{{ formErrors.instance.terms }}
+
+ +
+ + +
{{ formErrors.instance.codeOfConduct }}
+
+ +
+ +
Who moderates the instance? What is the policy regarding NSFW videos? Political videos? etc
+ + +
{{ formErrors.instance.moderationInformation }}
+
+ +
+
-
Instance
+
+
+
YOU AND YOUR INSTANCE
+
+ +
+ +
+ +
A single person? A non-profit? A company?
+ + + +
{{ formErrors.instance.administrator }}
+
+ +
+ +
To share your personal videos? To open registrations and allow people to upload what they want?
+ + +
{{ formErrors.instance.creationReason }}
+
+ +
+ +
It's important to know for users who want to register on your instance
+ + +
{{ formErrors.instance.maintenanceLifetime }}
+
+ +
+ +
With your own funds? With user donations? Advertising?
+ + +
{{ formErrors.instance.businessModel }}
+
+ +
+
-
- - -
- {{ formErrors.instanceName }} -
-
- -
- - -
- {{ formErrors.instanceShortDescription }} -
-
- -
- - -
- {{ formErrors.instanceDescription }} -
-
- -
- - -
- {{ formErrors.instanceTerms }} -
-
- -
- -
- -
-
- {{ formErrors.instanceDefaultClientRoute }} -
-
- -
- - - -
- -
-
- {{ formErrors.instanceDefaultNSFWPolicy }} -
-
+
+
+
OTHER INFORMATION
+
-
Signup
+
-
- +
+ +
i.e. 2vCore 2GB RAM, a direct the link to the server you rent, etc.
- - -
+ -
- - -
- {{ formErrors.signupLimit }} -
-
- -
Administrator
- -
- - -
- {{ formErrors.adminEmail }} -
-
- -
Users
- -
- -
- -
-
- {{ formErrors.userVideoQuota }} -
-
- - - - -
Twitter
- -
- - - -
- {{ formErrors.servicesTwitterUsername }} -
-
+
{{ formErrors.instance.hardwareInformation }}
+
-
- +
+
+ + + + + + + - - - +
+
+
APPEARANCE
+
+ Use plugins & themes for more involved changes, or add slight customizations. +
+
+ +
+ + +
+ + +
+ +
+
+
+ +
+ +
+ +
+
{{ formErrors.instance.defaultClientRoute }}
+
-
- +
+
- +
+
+
NEW USERS
+
+ Manage users to set their quota individually. +
+
-
Transcoding
+
+ + +
+ + + ⚠️ This functionality requires a lot of attention and extra moderation. + + + + +
+ + +
{{ formErrors.signup.limit }}
+ Signup won't be limited to a fixed number of users. +
+
+
+
+
+ + +
+ +
+ +
+
{{ formErrors.user.videoQuota }}
+
+ +
+ +
+ +
+
{{ formErrors.user.videoQuotaDaily }}
+
+
-
- +
+
- - +
+
+
NEW VIDEOS
+
- -
+
+ + + + +
+ +
+ +
+ +
+ +
+
+ + + + + +
+ + + Unless a user is marked as trusted, their videos will stay private until a moderator reviews them. + + +
+ +
+
+
- +
+
-
- -
- +
+
+
FEDERATION
+
+ Manage relations with other instances. +
-
- {{ formErrors.transcodingThreads }} + +
+ + + + +
+ +
+ +
+ +
+
+
+ + + + + +
+ + + ⚠️ This functionality requires a lot of attention and extra moderation. + + +
+
+ + +
+ + + ⚠️ This functionality requires a lot of attention and extra moderation. + + + +
+ + +
{{ formErrors.followings.instance.autoFollowIndex.indexUrl }}
+
+
+
+
+ +
+
+
+
-
- - - +
+
+
ADMINISTRATORS
+
+ +
+ +
+ + +
{{ formErrors.admin.email }}
+
+ +
+ +
+ +
+ + + + + -
- Cache - - -
- -
- - -
- {{ formErrors.cachePreviewsSize }} +
+
+
TWITTER
+
+ Optional. If any, provide the Twitter account representing your instance to improve link previews. +
+
+ +
+ + + + +
+ + + +
{{ formErrors.services.twitter.username }}
+
+ +
+ + + Instance whitelisted by Twitter + + + + + If your instance is whitelisted by Twitter, a video player will be embedded in the Twitter feed on PeerTube video share.
+ If the instance is not whitelisted, we use an image link card that will redirect on your PeerTube instance.

+ Check this checkbox, save the configuration and test with a video URL of your instance (https://example.com/videos/watch/blabla) on + https://cards-dev.twitter.com/validator + to see if you instance is whitelisted. +
+
+
+
+ +
+
+ +
-
- -
- - -
- {{ formErrors.cacheCaptionsSize }} + + + + + + + +
+
+
TRANSCODING
+
+ Process uploaded videos so that they are in a streamable form that any device can play. Though costly in + resources, this is a critical part of PeerTube, so tread carefully. +
+
+ +
+ + + +
+ + + Transcoding enabled + + + + If you disable transcoding, many videos from your users will not work! + + + + +
+ + + Allows users to upload .mkv, .mov, .avi and .flv videos. + + +
+ +
+ + + Allows users to upload audio files that will be merged with the preview file on upload. + + +
+ + +
+ + + + Experimental, we suggest you to not disable webtorrent support for now + +

If you also enabled HLS support, it will multiply videos storage by 2

+ +
+ + If disabled, breaks federation with PeerTube instances < 2.1 +
+
+
+
+
+ + +
+ + + + Requires ffmpeg >= 4.1 + +

Generate HLS playlists and fragmented MP4 files resulting in a better playback than with the current default player:

+
    +
  • Resolution change is smoother
  • +
  • Faster playback in particular with long videos
  • +
  • More stable playback (less bugs/infinite loading)
  • +
+ +

If you also enabled WebTorrent support, it will multiply videos storage by 2

+
+
+
+
+
+ +
+
+
+ +
+ +
+ +
+ +
+
{{ formErrors.transcoding.threads }}
+
+ +
+ +
+ + + +
+ +
+ + +
+
+
+
+
+
+ +
+ +
+ +
-
- -
Customizations
- -
- - - -
- {{ formErrors.customizationJavascript }} + +
+
+
CACHE
+
+ Some files are not federated, and fetched when necessary. Define their caching policies. +
+
+ +
+ + +
+ + +
{{ formErrors.cache.previews.size }}
+
+ +
+ + +
{{ formErrors.cache.captions.size }}
+
+
+ +
-
- -
- - +
+
+
CUSTOMIZATIONS
+
+ Slight modifications to your PeerTube instance for when creating a plugin or theme is overkill. +
+
+ +
+ + + +
+ + + + + Write JavaScript code directly.
Example:
console.log('my instance is amazing');
+
+
+
+ + + +
{{ formErrors.instance.customizations.javascript }}
+
+ +
+ + + + + + Write CSS code directly. Example:

+
+    #custom-css {{ '{' }}
+      color: red;
+    {{ '}' }}
+    
+ Prepend with #custom-css to override styles. Example:

+
     #custom-css .logged-in-email {{ '{' }}
       color: red;
     {{ '}' }}
-              
- " - >
- -
- {{ formErrors.customizationCSS }} + + + + + + +
{{ formErrors.instance.customizations.css }}
+
+ + + +
-
- - - - It seems the configuration is invalid. Please search potential errors in the different tabs. + + + + +
+
+
+ + It seems like the configuration is invalid. Please search for potential errors in the different tabs. +
+