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=dfbbfbb292bc0a4e77b4d409fb797184d13327bc;hpb=6d8c8ea73a774c3568e6d28a4cbebcf7979d5c2a;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 dfbbfbb29..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,316 +1,798 @@
- + - + -
Instance
+ -
- - -
- {{ formErrors.instanceName }} -
-
+
+
+
INSTANCE
+
-
- - -
- {{ formErrors.instanceShortDescription }} -
-
+
+ +
+ + +
{{ formErrors.instance.name }}
+
+ +
+ + +
{{ formErrors.instance.shortDescription }}
+
+ +
+ + +
{{ formErrors.instance.description }}
+
+ +
+ + +
+ +
+
+ +
+ + +
+ +
+
-
- - -
- {{ formErrors.instanceDescription }} +
-
-
- - -
- {{ formErrors.instanceTerms }} +
+
+
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 }}
+
+ +
-
-
- -
- +
+
+
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.instanceDefaultClientRoute }} + +
+
+
OTHER INFORMATION
+
+ +
+ +
+ +
i.e. 2vCore 2GB RAM, a direct the link to the server you rent, etc.
+ + + +
{{ formErrors.instance.hardwareInformation }}
+
+ +
-
-
- - - -
- + + + + + + + +
+
+
APPEARANCE
+
+ Use plugins & themes for more involved changes, or add slight customizations. +
-
- {{ formErrors.instanceDefaultNSFWPolicy }} + +
+ + +
+ + +
+ +
+
+
+ +
+ +
+ +
+
{{ formErrors.instance.defaultClientRoute }}
+
+
-
Signup
- - - - - -
- - -
- {{ formErrors.signupLimit }} +
+
+
NEW USERS
+
+ Manage users to set their quota individually. +
-
-
Import
+
+ + +
+ + + ⚠️ 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
+
-
Administrator
+
+ + + + +
+ +
+ +
+ +
+ +
+
+ + + + + +
+ + + Unless a user is marked as trusted, their videos will stay private until a moderator reviews them. + + +
+ +
+
+
-
- - -
- {{ formErrors.adminEmail }}
-
Users
- -
- -
- +
+
+
FEDERATION
+
+ Manage relations with other instances. +
-
- {{ formErrors.userVideoQuota }} + +
+ + + + +
+ +
+ +
+ +
+
+
+ + + + + +
+ + + ⚠️ 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.userVideoQuotaDaily }} + +
+ +
+ + +
{{ formErrors.admin.email }}
+
+ +
+ +
+
+ - + -
Twitter
- -
- - - -
- {{ formErrors.servicesTwitterUsername }} + +
+
+
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. +
+
+
+
+ +
+
+
- - + -
Transcoding
- - - - - -
- -
- -
-
- {{ formErrors.transcodingThreads }} +
+
+
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 }}
+
+ +
+ +
+ + + +
+ +
+ + +
+
+
+
+
+
+ +
+ +
- - -
- Cache - -
-
- - -
- {{ formErrors.cachePreviewsSize }} +
+
+
CACHE
+
+ Some files are not federated, and fetched when necessary. Define their caching policies. +
-
-
- - -
- {{ formErrors.cacheCaptionsSize }} +
+ + +
+ + +
{{ formErrors.cache.previews.size }}
+
+ +
+ + +
{{ formErrors.cache.captions.size }}
+
+
+
-
Customizations
- -
- - - -
- {{ formErrors.customizationJavascript }} +
+
+
+
CUSTOMIZATIONS
+
+ Slight modifications to your PeerTube instance for when creating a plugin or theme is overkill. +
-
-
- - - -
- {{ formErrors.customizationCSS }} +
+ + + +
+ + + + + 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.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. +
+