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=4a5ffb37cdb27e35703d2a45c824166053c0fa53;hpb=a465bf5f472227f46af42ec26a22e381aec5d458;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 4a5ffb37c..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,189 +1,798 @@ -
Update PeerTube configuration
-
-
Instance
+ -
- - -
- {{ formErrors.instanceName }} -
-
+ + -
- - -
- {{ formErrors.instanceShortDescription }} -
-
+ -
- - -
- {{ formErrors.instanceDescription }} -
-
+
+
+
INSTANCE
+
-
- - -
- {{ formErrors.instanceTerms }} -
-
+
-
- -
- -
-
- {{ formErrors.instanceDefaultClientRoute }} -
-
+
+ + +
{{ formErrors.instance.name }}
+
-
Cache
+
+ + +
{{ formErrors.instance.shortDescription }}
+
-
- - -
- {{ formErrors.cachePreviewsSize }} -
-
+
+ + +
{{ formErrors.instance.description }}
+
-
Signup
+
+ -
- +
+ +
+
- - -
+
+ -
- - -
- {{ formErrors.signupLimit }} -
-
+
+ +
+
-
Administrator
+
+
-
- - -
- {{ formErrors.adminEmail }} -
-
+
+
+
MODERATION & NSFW
+
+ Manage users to build a moderation team. +
+
-
Users
+
-
- -
- -
-
- {{ formErrors.userVideoQuota }} -
-
+
+ + + This instance is dedicated to sensitive or NSFW content + -
Transcoding
+ + + 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.transcodingThreads }} -
-
+
+ +
+
{{ formErrors.instance.defaultNSFWPolicy }}
+
-
- - - -
- - -
Customizations
- -
- - - -
- {{ formErrors.customizationJavascript }} -
-
+
+ + +
{{ 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 }}
+
+ +
+
+ +
+
+
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.instance.defaultClientRoute }}
+
+ +
+
+ +
+
+
NEW USERS
+
+ Manage users to set their quota individually. +
+
+ +
+ + +
+ + + ⚠️ 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
+
+ +
+ + + + +
+ +
+ +
+ +
-
- - - -
- {{ formErrors.customizationCSS }} + + + + + + + +
+ + + Unless a user is marked as trusted, their videos will stay private until a moderator reviews them. + + +
+ +
+
+
+ +
+
+ +
+
+
FEDERATION
+
+ Manage relations with other instances. +
+
+ +
+ + + + +
+ +
+ +
+ +
+
+
+ + + + + +
+ + + ⚠️ 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 }}
+
+ +
+ +
+ +
+
+ + + + + + + +
+
+
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
+
+ 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
+
+ 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.instance.customizations.css }}
+
+
+
+ +
+
+ +
+
+ + +
+
+
+ + It seems like the configuration is invalid. Please search for potential errors in the different tabs.
- -