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=b0961406145e5cd37e68aa8a89f28b0dd4d37137;hpb=a30a136c9896c656cab98d2c92cde32c534dc098;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 b09614061..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,675 +1,798 @@
- + - + -
Instance
+
+
+
INSTANCE
+
-
- - -
{{ formErrors.instance.name }}
-
+
-
- - -
{{ formErrors.instance.shortDescription }}
-
+
+ + +
{{ formErrors.instance.name }}
+
-
- - -
{{ formErrors.instance.description }}
-
+
+ + +
{{ formErrors.instance.shortDescription }}
+
-
- +
+ + +
{{ formErrors.instance.description }}
+
-
- -
-
+
+ + +
+ +
+
-
- +
+ + +
+ +
+
-
-
-
Moderation & NSFW
+
+
+
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. -
-
- -
+
+ + + 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 }}
-
+ + + + With Do not list or Blur thumbnails, a confirmation will be requested to watch the video. + + + + +
+ +
+
{{ formErrors.instance.defaultNSFWPolicy }}
+
-
- - -
{{ formErrors.instance.codeOfConduct }}
-
+
+ + +
{{ formErrors.instance.terms }}
+
+ +
+ + +
{{ formErrors.instance.codeOfConduct }}
+
-
- -
Who moderates the instance? What is the policy regarding NSFW videos? Political videos? etc
+
+ +
Who moderates the instance? What is the policy regarding NSFW videos? Political videos? etc
+ + +
{{ formErrors.instance.moderationInformation }}
+
- -
{{ formErrors.instance.moderationInformation }}
+
-
You and your instance
+
+
+
YOU AND YOUR INSTANCE
+
-
- -
A single person? A non-profit? A company?
+
- +
+ +
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.administrator }}
+
- -
{{ formErrors.instance.creationReason }}
-
+
+ +
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
+
+ +
It's important to know for users who want to register on your instance
+ + +
{{ formErrors.instance.maintenanceLifetime }}
+
- -
{{ formErrors.instance.maintenanceLifetime }}
+
+ +
With your own funds? With user donations? Advertising?
+ + +
{{ formErrors.instance.businessModel }}
+
+ +
-
- -
With your own funds? With users donations? Advertising?
+
+
+
OTHER INFORMATION
+
- -
{{ formErrors.instance.businessModel }}
-
+
-
Other information
+
+ +
i.e. 2vCore 2GB RAM, a direct the link to the server you rent, etc.
-
- -
2vCore 2GB RAM/or directly the link to the server you rent etc
+ - +
{{ formErrors.instance.hardwareInformation }}
+
-
{{ formErrors.instance.hardwareInformation }}
+
- + -
Theme & Default route
- - -
- - -
- +
+
+
APPEARANCE
+
+ Use plugins & themes for more involved changes, or add slight customizations.
- +
-
- -
- -
-
{{ formErrors.instance.defaultClientRoute }}
-
+ +
+ -
Signup
+
+ -
{{ formErrors.signup.limit }}
- Signup won't be limited to a fixed number of users. + +
- - -
-
- - -
Users
+
+ - -
- -
- +
+ +
+ +
+
{{ formErrors.instance.defaultClientRoute }}
-
{{ formErrors.user.videoQuota }}
+
+
-
- -
- +
+
+
NEW USERS
+
+ Manage users to set their quota individually.
-
{{ formErrors.user.videoQuotaDaily }}
- +
-
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
+
-
Auto-blacklist
+
- - - + + + +
+ +
-
- - - Unless a user is marked as trusted, their videos will stay private until a moderator reviews them. - - -
+
+ +
+
-
-
- -
Instance followers
+ + + + +
+ + + Unless a user is marked as trusted, their videos will stay private until a moderator reviews them. + + +
+ +
+
+
- - +
+
-
- +
+
+
FEDERATION
+
+ Manage relations with other instances.
+
-
- -
- - +
-
Instance followings
+ + - - +
+ +
- -
- - - ⚠️ This functionality requires a lot of attention and extra moderation. - - -
+
+ +
+
- -
- - - ⚠️ 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 }}
-
-
-
-
+ +
+ + + ⚠️ This functionality requires a lot of attention and extra moderation. + + + +
+ + +
{{ formErrors.followings.instance.autoFollowIndex.indexUrl }}
+
+
+
+
+
+
-
-
+
+
-
Administrator
+
+
+
ADMINISTRATORS
+
-
- - -
{{ formErrors.admin.email }}
-
+
-
- +
+ + +
{{ formErrors.admin.email }}
+
+ +
+ +
+ +
- + -
Twitter
- - +
+
+
TWITTER
+
+ Optional. If any, provide the Twitter account representing your instance to improve link previews. +
+
-
- +
- - - Indicates the Twitter account for the website or platform on which the content was published. - - + + - -
{{ 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.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
- - -
- - - Transcoding enabled - - - - If you disable transcoding, many videos from your users will not work! - - +
+
+
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. +
- - -
- - - Allow your users to upload .mkv, .mov, .avi and .flv videos - - -
+
-
- - - Allow your users to upload audio files that will be merged with the preview file on upload - - -
+ - -
- +
+ + + Transcoding enabled + + - - Experimental, we suggest you to not disable webtorrent support for now + If you disable transcoding, many videos from your users will not work! + + + -

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

+
+ + + 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 +
+
+
+
+
- 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

+
+
+
+
- + +
- - -
- - - - 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)
  • -
+
+ +
+ +
+
{{ formErrors.transcoding.threads }}
+
-

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

- - -
-
-
- -
- -
-
{{ formErrors.transcoding.threads }}
-
+
- -
- - -
-
-
-
-
+ - - +
+ +
+ + +
+
+
+
+
+
-
- Cache +
- - - Some files are not federated (previews, captions). We fetch them directly from the origin instance and cache them. - - -
+ - -
- - -
{{ formErrors.cache.previews.size }}
+
-
- - -
{{ formErrors.cache.captions.size }}
+
+
+
CACHE
+
+ Some files are not federated, and fetched when necessary. Define their caching policies. +
- -
Customizations
+
- - -
- - - - - Write JavaScript code directly.
Example:
console.log('my instance is amazing');
-
-
-
+ +
+ + +
{{ formErrors.cache.previews.size }}
+
- +
+ + +
{{ formErrors.cache.captions.size }}
+
+
-
{{ 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 }}
+
+
+
+
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. +
+
+
+ + It seems like the configuration is invalid. Please search for potential errors in the different tabs. +
+