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=2cf0e5fd9fe549346fd315088ae58840339043f2;hb=14571f1995e3a1868a3280b7aad5005cff051c7d;hp=7f03236013d87dd15ed1552869e4c353709c3652;hpb=5b7c47a781f33bfbeff12c30f5c790bac2378731;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 7f0323601..2cf0e5fd9 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,276 +1,675 @@
- + - + + -
Instance
+ -
- - -
- {{ formErrors.instanceName }} -
-
- -
- - -
- {{ formErrors.instanceShortDescription }} -
-
- -
- - -
- {{ formErrors.instanceDescription }} -
-
- -
- - -
- {{ formErrors.instanceTerms }} -
-
- -
- -
- -
-
- {{ formErrors.instanceDefaultClientRoute }} -
-
- -
- - - -
- -
-
- {{ formErrors.instanceDefaultNSFWPolicy }} -
-
+
INSTANCE
-
Signup
+
+ + +
{{ formErrors.instance.name }}
+
-
- +
+ + +
{{ formErrors.instance.shortDescription }}
+
- - -
+
+ + +
{{ formErrors.instance.description }}
+
-
- - -
- {{ formErrors.signupLimit }} -
-
- -
Administrator
- -
- - -
- {{ formErrors.adminEmail }} -
-
- -
Users
- -
- -
- -
-
- {{ formErrors.userVideoQuota }} -
-
-
- - - -
Twitter
- -
- - - -
- {{ formErrors.servicesTwitterUsername }} -
-
+
+ -
- +
+ +
+
- - - +
+ -
- +
+ +
+
- +
MODERATION & NSFW
+ +
+ + + 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 }}
+
-
Transcoding
+
+ + +
{{ 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 users donations? Advertising?
+ + +
{{ formErrors.instance.businessModel }}
+
+ +
OTHER INFORMATION
+ +
+ +
2vCore 2GB RAM/or directly the link to the server you rent etc
+ + + +
{{ formErrors.instance.hardwareInformation }}
+
+ + + + + + + + +
THEME AND DEFAULT ROUTE
+ + +
+ + +
+ +
+
+
+ + +
+
- + + + + +
-
- {{ formErrors.transcodingThreads }} -
+
{{ formErrors.instance.defaultClientRoute }}
-
+
SIGNUP
+ + +
+ + + ⚠️ This functionality requires a lot of attention and extra moderation. + + + + +
+ + +
{{ formErrors.signup.limit }}
+ Signup won't be limited to a fixed number of users. +
+
+
+
+
+ + +
USERS
+ + +
+ +
+ +
+
{{ formErrors.user.videoQuota }}
+
+ +
+ +
+ +
+
{{ formErrors.user.videoQuotaDaily }}
+
+
+ + +
IMPORT
+ + + + +
+ +
+ +
+ +
+ +
+
+ + +
AUTO-BLACKLIST
+ + + + + +
+ + + Unless a user is marked as trusted, their videos will stay private until a moderator reviews them. + + +
+ +
+
+
+ + +
INSTANCE FOLLOWERS
+ + + + +
+ +
+ +
+ +
+
+
+ +
INSTANCE FOLLOWINGS
+ + + + + +
+ + + ⚠️ 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 }} -
-
- -
Customizations
- -
- - - -
- {{ formErrors.customizationJavascript }} +
+
-
- -
- - - -
- {{ formErrors.customizationCSS }} + + + + + + +
TWITTER
+ + + + +
+ + + + + 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. +
+
+
+
+ +
+
+ +
+
+ + + + +
TRANSCODING
+ + +
+ + + Transcoding enabled + + + + If you disable transcoding, many videos from your users will not work! + + +
+ + + +
+ + + 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 + + +
+ + +
+ + + + 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 (previews, captions). We fetch them directly from the origin instance and cache them. + +
-
- - + + +
+ + +
{{ formErrors.cache.previews.size }}
+
+ +
+ + +
{{ formErrors.cache.captions.size }}
+
+
+ +
CUSTOMIZATIONS
+ + + +
+ + + + + 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 configration 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.