1 <form role=
"form" [formGroup]=
"form">
3 <ngb-tabset #tabs
class=
"root-tabset bootstrap">
5 <ngb-tab id=
"instance-information" i18n-title
title=
"Instance information">
6 <ng-template ngbTabContent
>
8 <ng-container formGroupName=
"instance">
10 <div class=
"form-row mt-5"> <!-- instance grid -->
11 <div class=
"form-group col-12 col-lg-4 col-xl-3">
12 <div i18n
class=
"inner-form-title">INSTANCE
</div>
15 <div class=
"form-group form-group-right col-12 col-lg-8 col-xl-9">
17 <div class=
"form-group">
18 <label i18n
for=
"instanceName">Name
</label>
20 type=
"text" id=
"instanceName"
21 formControlName=
"name" [ngClass]=
"{ 'input-error': formErrors.instance.name }"
23 <div *
ngIf=
"formErrors.instance.name" class=
"form-error">{{ formErrors.instance.name }}
</div>
26 <div class=
"form-group">
27 <label i18n
for=
"instanceShortDescription">Short description
</label>
29 id=
"instanceShortDescription" formControlName=
"shortDescription" class=
"small"
30 [ngClass]=
"{ 'input-error': formErrors['instance.shortDescription'] }"
32 <div *
ngIf=
"formErrors.instance.shortDescription" class=
"form-error">{{ formErrors.instance.shortDescription }}
</div>
35 <div class=
"form-group">
36 <label i18n
for=
"instanceDescription">Description
</label><my-help helpType=
"markdownText"></my-help>
38 name=
"instanceDescription" formControlName=
"description" textareaWidth=
"500px" [previewColumn]=
"true"
39 [classes]=
"{ 'input-error': formErrors['instance.description'] }"
40 ></my-markdown-textarea>
41 <div *
ngIf=
"formErrors.instance.description" class=
"form-error">{{ formErrors.instance.description }}
</div>
44 <div class=
"form-group">
45 <label i18n
for=
"instanceCategories">Main instance categories
</label>
49 inputId=
"instanceCategories" [options]=
"categoryItems" formControlName=
"categories" [showToggleAll]=
"false"
50 [defaultLabel]=
"getDefaultCategoryLabel()" [selectedItemsLabel]=
"getSelectedCategoryLabel()"
51 emptyFilterMessage=
"No results found" i18n-emptyFilterMessage
56 <div class=
"form-group">
57 <label i18n
for=
"instanceLanguages">Main languages you/your moderators speak
</label>
61 inputId=
"instanceLanguages" [options]=
"languageItems" formControlName=
"languages" [showToggleAll]=
"false"
62 [defaultLabel]=
"getDefaultLanguageLabel()" [selectedItemsLabel]=
"getSelectedLanguageLabel()"
63 emptyFilterMessage=
"No results found" i18n-emptyFilterMessage
71 <div class=
"form-row mt-4"> <!-- moderation & nsfw grid -->
72 <div class=
"form-group col-12 col-lg-4 col-xl-3">
73 <div i18n
class=
"inner-form-title">MODERATION & NSFW
</div>
74 <div i18n
class=
"inner-for-description">
75 Manage
<a routerLink=
"/admin/users">users
</a> to build a moderation team.
79 <div class=
"form-group form-group-right col-12 col-lg-8 col-xl-9">
81 <div class=
"form-group">
82 <my-peertube-checkbox inputName=
"instanceIsNSFW" formControlName=
"isNSFW">
83 <ng-template ptTemplate=
"label">
84 <ng-container i18n
>This instance is dedicated to sensitive or NSFW content
</ng-container>
87 <ng-template ptTemplate=
"help">
89 Enabling it will allow other administrators to know that you are mainly federating sensitive content.
<br /><br />
90 Moreover, the NSFW checkbox on video upload will be automatically checked by default.
93 </my-peertube-checkbox>
96 <div class=
"form-group">
97 <label i18n
for=
"instanceDefaultNSFWPolicy">Policy on videos containing sensitive content
</label>
100 <ng-template ptTemplate=
"customHtml">
102 With
<strong>Do not list
</strong> or
<strong>Blur thumbnails
</strong>, a confirmation will be requested to watch the video.
107 <div class=
"peertube-select-container">
108 <select id=
"instanceDefaultNSFWPolicy" formControlName=
"defaultNSFWPolicy">
109 <option i18n
value=
"do_not_list">Do not list
</option>
110 <option i18n
value=
"blur">Blur thumbnails
</option>
111 <option i18n
value=
"display">Display
</option>
114 <div *
ngIf=
"formErrors.instance.defaultNSFWPolicy" class=
"form-error">{{ formErrors.instance.defaultNSFWPolicy }}
</div>
117 <div class=
"form-group">
118 <label i18n
for=
"instanceTerms">Terms
</label><my-help helpType=
"markdownText"></my-help>
119 <my-markdown-textarea
120 name=
"instanceTerms" formControlName=
"terms" textareaWidth=
"500px" [previewColumn]=
"true"
121 [ngClass]=
"{ 'input-error': formErrors['instance.terms'] }"
122 ></my-markdown-textarea>
123 <div *
ngIf=
"formErrors.instance.terms" class=
"form-error">{{ formErrors.instance.terms }}
</div>
126 <div class=
"form-group">
127 <label i18n
for=
"instanceCodeOfConduct">Code of conduct
</label><my-help helpType=
"markdownText"></my-help>
128 <my-markdown-textarea
129 name=
"instanceCodeOfConduct" formControlName=
"codeOfConduct" textareaWidth=
"500px" [previewColumn]=
"true"
130 [ngClass]=
"{ 'input-error': formErrors['instance.codeOfConduct'] }"
131 ></my-markdown-textarea>
132 <div *
ngIf=
"formErrors.instance.codeOfConduct" class=
"form-error">{{ formErrors.instance.codeOfConduct }}
</div>
135 <div class=
"form-group">
136 <label i18n
for=
"instanceModerationInformation">Moderation information
</label><my-help helpType=
"markdownText"></my-help>
137 <div i18n
class=
"label-small-info">Who moderates the instance? What is the policy regarding NSFW videos? Political videos? etc
</div>
139 <my-markdown-textarea
140 name=
"instanceModerationInformation" formControlName=
"moderationInformation" textareaWidth=
"500px" [previewColumn]=
"true"
141 [ngClass]=
"{ 'input-error': formErrors['instance.moderationInformation'] }"
142 ></my-markdown-textarea>
143 <div *
ngIf=
"formErrors.instance.moderationInformation" class=
"form-error">{{ formErrors.instance.moderationInformation }}
</div>
149 <div class=
"form-row mt-4"> <!-- you and your instance grid -->
150 <div class=
"form-group col-12 col-lg-4 col-xl-3">
151 <div i18n
class=
"inner-form-title">YOU AND YOUR INSTANCE
</div>
154 <div class=
"form-group form-group-right col-12 col-lg-8 col-xl-9">
156 <div class=
"form-group">
157 <label i18n
for=
"instanceAdministrator">Who is behind the instance?
</label>
158 <div i18n
class=
"label-small-info">A single person? A non-profit? A company?
</div>
160 <my-markdown-textarea
161 name=
"instanceAdministrator" formControlName=
"administrator" textareaWidth=
"500px" textareaHeight=
"75px" [previewColumn]=
"true"
162 [classes]=
"{ 'input-error': formErrors['instance.administrator'] }"
163 ></my-markdown-textarea>
165 <div *
ngIf=
"formErrors.instance.administrator" class=
"form-error">{{ formErrors.instance.administrator }}
</div>
168 <div class=
"form-group">
169 <label i18n
for=
"instanceCreationReason">Why did you create this instance?
</label>
170 <div i18n
class=
"label-small-info">To share your personal videos? To open registrations and allow people to upload what they want?
</div>
173 id=
"instanceCreationReason" formControlName=
"creationReason" class=
"small"
174 [ngClass]=
"{ 'input-error': formErrors['instance.creationReason'] }"
176 <div *
ngIf=
"formErrors.instance.creationReason" class=
"form-error">{{ formErrors.instance.creationReason }}
</div>
179 <div class=
"form-group">
180 <label i18n
for=
"instanceMaintenanceLifetime">How long do you plan to maintain this instance?
</label>
181 <div i18n
class=
"label-small-info">It's important to know for users who want to register on your instance
</div>
184 id=
"instanceMaintenanceLifetime" formControlName=
"maintenanceLifetime" class=
"small"
185 [ngClass]=
"{ 'input-error': formErrors['instance.maintenanceLifetime'] }"
187 <div *
ngIf=
"formErrors.instance.maintenanceLifetime" class=
"form-error">{{ formErrors.instance.maintenanceLifetime }}
</div>
190 <div class=
"form-group">
191 <label i18n
for=
"instanceBusinessModel">How will you finance the PeerTube server?
</label>
192 <div i18n
class=
"label-small-info">With your own funds? With user donations? Advertising?
</div>
195 id=
"instanceBusinessModel" formControlName=
"businessModel" class=
"small"
196 [ngClass]=
"{ 'input-error': formErrors['instance.businessModel'] }"
198 <div *
ngIf=
"formErrors.instance.businessModel" class=
"form-error">{{ formErrors.instance.businessModel }}
</div>
204 <div class=
"form-row mt-4"> <!-- other information grid -->
205 <div class=
"form-group col-12 col-lg-4 col-xl-3">
206 <div i18n
class=
"inner-form-title">OTHER INFORMATION
</div>
209 <div class=
"form-group form-group-right col-12 col-lg-8 col-xl-9">
211 <div class=
"form-group">
212 <label i18n
for=
"instanceHardwareInformation">What server/hardware does the instance run on?
</label>
213 <div i18n
class=
"label-small-info">i.e.
2vCore
2GB RAM, a direct the link to the server you rent, etc.
</div>
215 <my-markdown-textarea
216 name=
"instanceHardwareInformation" formControlName=
"hardwareInformation" textareaWidth=
"500px" textareaHeight=
"75px" [previewColumn]=
"true"
217 [classes]=
"{ 'input-error': formErrors['instance.hardwareInformation'] }"
218 ></my-markdown-textarea>
220 <div *
ngIf=
"formErrors.instance.hardwareInformation" class=
"form-error">{{ formErrors.instance.hardwareInformation }}
</div>
230 <ngb-tab id=
"basic-configuration" i18n-title
title=
"Basic configuration">
231 <ng-template ngbTabContent
>
233 <div class=
"form-row mt-5"> <!-- appearance grid -->
234 <div class=
"form-group col-12 col-lg-4 col-xl-3">
235 <div i18n
class=
"inner-form-title">APPEARANCE
</div>
236 <div i18n
class=
"inner-for-description">
237 Use
<a routerLink=
"/admin/plugins">plugins & themes
</a> for more involved changes, or
<a routerLink=
"/admin/config/edit-custom" fragment=
"customizations" (click)=
"gotoAnchor()">add slight customizations
</a>.
241 <div class=
"form-group form-group-right col-12 col-lg-8 col-xl-9">
243 <ng-container formGroupName=
"theme">
244 <div class=
"form-group">
245 <label i18n
for=
"themeDefault">Theme
</label>
247 <div class=
"peertube-select-container">
248 <select formControlName=
"default" id=
"themeDefault">
249 <option i18n
value=
"default">default
</option>
251 <option *
ngFor=
"let theme of availableThemes" [value]=
"theme">{{ theme }}
</option>
257 <div class=
"form-group" formGroupName=
"instance">
258 <label i18n
for=
"instanceDefaultClientRoute">Landing page
</label>
259 <div class=
"peertube-select-container">
260 <select id=
"instanceDefaultClientRoute" formControlName=
"defaultClientRoute">
261 <option i18n
value=
"/videos/overview">Discover videos
</option>
262 <option i18n
value=
"/videos/trending">Trending videos
</option>
263 <option i18n
value=
"/videos/most-liked">Most liked videos
</option>
264 <option i18n
value=
"/videos/recently-added">Recently added videos
</option>
265 <option i18n
value=
"/videos/local">Local videos
</option>
268 <div *
ngIf=
"formErrors.instance.defaultClientRoute" class=
"form-error">{{ formErrors.instance.defaultClientRoute }}
</div>
274 <div class=
"form-row mt-4"> <!-- new users grid -->
275 <div class=
"form-group col-12 col-lg-4 col-xl-3">
276 <div i18n
class=
"inner-form-title">NEW USERS
</div>
277 <div i18n
class=
"inner-for-description">
278 Manage
<a routerLink=
"/admin/users">users
</a> to set their quota individually.
282 <div class=
"form-group form-group-right col-12 col-lg-8 col-xl-9">
284 <ng-container formGroupName=
"signup">
285 <div class=
"form-group">
286 <my-peertube-checkbox
287 inputName=
"signupEnabled" formControlName=
"enabled"
288 i18n-labelText
labelText=
"Signup enabled"
290 <ng-container ngProjectAs=
"description">
291 <span i18n
>⚠️ This functionality requires a lot of attention and extra moderation.
</span>
293 <ng-container ngProjectAs=
"extra">
294 <my-peertube-checkbox [ngClass]=
"{ 'disabled-checkbox-extra': !isSignupEnabled() }"
295 inputName=
"signupRequiresEmailVerification" formControlName=
"requiresEmailVerification"
296 i18n-labelText
labelText=
"Signup requires email verification"
297 ></my-peertube-checkbox>
299 <div [ngClass]=
"{ 'disabled-checkbox-extra': !isSignupEnabled() }" class=
"mt-3">
300 <label i18n
for=
"signupLimit">Signup limit
</label>
302 type=
"number" min=
"-1" id=
"signupLimit"
303 formControlName=
"limit" [ngClass]=
"{ 'input-error': formErrors['signup.limit'] }"
305 <div *
ngIf=
"formErrors.signup.limit" class=
"form-error">{{ formErrors.signup.limit }}
</div>
306 <small *
ngIf=
"form.value['signup']['limit'] === -1" class=
"text-muted">Signup won't be limited to a fixed number of users.
</small>
309 </my-peertube-checkbox>
313 <ng-container formGroupName=
"user">
314 <div class=
"form-group">
315 <label i18n
for=
"userVideoQuota">Default video quota per user
</label>
316 <div class=
"peertube-select-container">
317 <select id=
"userVideoQuota" formControlName=
"videoQuota">
318 <option *
ngFor=
"let videoQuotaOption of videoQuotaOptions" [value]=
"videoQuotaOption.value">
319 {{ videoQuotaOption.label }}
323 <div *
ngIf=
"formErrors.user.videoQuota" class=
"form-error">{{ formErrors.user.videoQuota }}
</div>
326 <div class=
"form-group">
327 <label i18n
for=
"userVideoQuotaDaily">Default daily upload limit per user
</label>
328 <div class=
"peertube-select-container">
329 <select id=
"userVideoQuotaDaily" formControlName=
"videoQuotaDaily">
330 <option *
ngFor=
"let videoQuotaDailyOption of videoQuotaDailyOptions" [value]=
"videoQuotaDailyOption.value">
331 {{ videoQuotaDailyOption.label }}
335 <div *
ngIf=
"formErrors.user.videoQuotaDaily" class=
"form-error">{{ formErrors.user.videoQuotaDaily }}
</div>
342 <div class=
"form-row mt-4"> <!-- new videos grid -->
343 <div class=
"form-group col-12 col-lg-4 col-xl-3">
344 <div i18n
class=
"inner-form-title">NEW VIDEOS
</div>
347 <div class=
"form-group form-group-right col-12 col-lg-8 col-xl-9">
349 <ng-container formGroupName=
"import">
350 <ng-container formGroupName=
"videos">
352 <div class=
"form-group" formGroupName=
"http">
353 <my-peertube-checkbox
354 inputName=
"importVideosHttpEnabled" formControlName=
"enabled"
355 i18n-labelText
labelText=
"Allow import with HTTP URL (i.e. YouTube)"
356 ></my-peertube-checkbox>
359 <div class=
"form-group" formGroupName=
"torrent">
360 <my-peertube-checkbox
361 inputName=
"importVideosTorrentEnabled" formControlName=
"enabled"
362 i18n-labelText
labelText=
"Allow import with a torrent file or a magnet URI"
363 ></my-peertube-checkbox>
369 <ng-container formGroupName=
"autoBlacklist">
370 <ng-container formGroupName=
"videos">
371 <ng-container formGroupName=
"ofUsers">
373 <div class=
"form-group">
374 <my-peertube-checkbox
375 inputName=
"autoBlacklistVideosOfUsersEnabled" formControlName=
"enabled"
376 i18n-labelText
labelText=
"Blacklist new videos automatically"
378 <ng-container ngProjectAs=
"description">
379 <span i18n
>Unless a user is marked as trusted, their videos will stay private until a moderator reviews them.
</span>
381 </my-peertube-checkbox>
391 <div class=
"form-row mt-4"> <!-- federation grid -->
392 <div class=
"form-group col-12 col-lg-4 col-xl-3">
393 <div i18n
class=
"inner-form-title">FEDERATION
</div>
394 <div i18n
class=
"inner-form-description">
395 Manage
<a routerLink=
"/admin/follows">relations
</a> with other instances.
399 <div class=
"form-group form-group-right col-12 col-lg-8 col-xl-9">
401 <ng-container formGroupName=
"followers">
402 <ng-container formGroupName=
"instance">
404 <div class=
"form-group">
405 <my-peertube-checkbox
406 inputName=
"followersInstanceEnabled" formControlName=
"enabled"
407 i18n-labelText
labelText=
"Other instances can follow yours"
408 ></my-peertube-checkbox>
411 <div class=
"form-group">
412 <my-peertube-checkbox
413 inputName=
"followersInstanceManualApproval" formControlName=
"manualApproval"
414 i18n-labelText
labelText=
"Manually approve new instance followers"
415 ></my-peertube-checkbox>
420 <ng-container formGroupName=
"followings">
421 <ng-container formGroupName=
"instance">
423 <ng-container formGroupName=
"autoFollowBack">
424 <div class=
"form-group">
425 <my-peertube-checkbox
426 inputName=
"followingsInstanceAutoFollowBackEnabled" formControlName=
"enabled"
427 i18n-labelText
labelText=
"Automatically follow back instances"
429 <ng-container ngProjectAs=
"description">
430 <span i18n
>⚠️ This functionality requires a lot of attention and extra moderation.
</span>
432 </my-peertube-checkbox>
436 <ng-container formGroupName=
"autoFollowIndex">
437 <div class=
"form-group">
438 <my-peertube-checkbox
439 inputName=
"followingsInstanceAutoFollowIndexEnabled" formControlName=
"enabled"
440 i18n-labelText
labelText=
"Automatically follow instances of the public index"
442 <ng-container ngProjectAs=
"description">
443 <span i18n
>⚠️ This functionality requires a lot of attention and extra moderation.
</span>
446 <ng-container ngProjectAs=
"extra">
447 <div [ngClass]=
"{ 'disabled-checkbox-extra': !isAutoFollowIndexEnabled() }">
448 <label i18n
for=
"followingsInstanceAutoFollowIndexUrl">Index URL
</label>
450 type=
"text" id=
"followingsInstanceAutoFollowIndexUrl"
451 formControlName=
"indexUrl" [ngClass]=
"{ 'input-error': formErrors['followings.instance.autoFollowIndex.indexUrl'] }"
453 <div *
ngIf=
"formErrors.followings.instance.autoFollowIndex.indexUrl" class=
"form-error">{{ formErrors.followings.instance.autoFollowIndex.indexUrl }}
</div>
456 </my-peertube-checkbox>
466 <div class=
"form-row mt-4"> <!-- administrators grid -->
467 <div class=
"form-group col-12 col-lg-4 col-xl-3">
468 <div i18n
class=
"inner-form-title">ADMINISTRATORS
</div>
471 <div class=
"form-group form-group-right col-12 col-lg-8 col-xl-9">
473 <div class=
"form-group" formGroupName=
"admin">
474 <label i18n
for=
"adminEmail">Admin email
</label>
476 type=
"text" id=
"adminEmail"
477 formControlName=
"email" [ngClass]=
"{ 'input-error': formErrors['admin.email'] }"
479 <div *
ngIf=
"formErrors.admin.email" class=
"form-error">{{ formErrors.admin.email }}
</div>
482 <div class=
"form-group" formGroupName=
"contactForm">
483 <my-peertube-checkbox
484 inputName=
"enableContactForm" formControlName=
"enabled"
485 i18n-labelText
labelText=
"Enable contact form"
486 ></my-peertube-checkbox>
495 <ngb-tab id=
"services" i18n-title
title=
"Services">
496 <ng-template ngbTabContent
>
498 <div class=
"form-row mt-5"> <!-- twitter grid -->
499 <div class=
"form-group col-12 col-lg-4 col-xl-3">
500 <div i18n
class=
"inner-form-title">TWITTER
</div>
501 <div i18n
class=
"inner-form-description">
502 Optional. If any, provide the Twitter account representing your instance to improve link previews.
506 <div class=
"form-group form-group-right col-12 col-lg-8 col-xl-9">
508 <ng-container formGroupName=
"services">
509 <ng-container formGroupName=
"twitter">
511 <div class=
"form-group">
512 <label i18n
for=
"signupLimit">Your Twitter username
</label>
515 type=
"text" id=
"servicesTwitterUsername"
516 formControlName=
"username" [ngClass]=
"{ 'input-error': formErrors['services.twitter.username'] }"
518 <div *
ngIf=
"formErrors.services.twitter.username" class=
"form-error">{{ formErrors.services.twitter.username }}
</div>
521 <div class=
"form-group">
522 <my-peertube-checkbox inputName=
"servicesTwitterWhitelisted" formControlName=
"whitelisted">
523 <ng-template ptTemplate=
"label">
524 <ng-container i18n
>Instance whitelisted by Twitter
</ng-container>
527 <ng-template ptTemplate=
"help">
529 If your instance is whitelisted by Twitter, a video player will be embedded in the Twitter feed on PeerTube video share.
<br />
530 If the instance is not whitelisted, we use an image link card that will redirect on your PeerTube instance.
<br /><br />
531 Check this checkbox, save the configuration and test with a video URL of your instance (https://example.com/videos/watch/blabla) on
532 <a target='_blank' rel='noopener noreferrer' href='https://cards-dev.twitter.com/validator'
>https://cards-dev.twitter.com/validator
</a>
533 to see if you instance is whitelisted.
536 </my-peertube-checkbox>
548 <ngb-tab id=
"advanced-configuration" i18n-title
title=
"Advanced configuration">
549 <ng-template ngbTabContent
>
551 <div class=
"form-row mt-5"> <!-- transcoding grid -->
552 <div class=
"form-group col-12 col-lg-4 col-xl-3">
553 <div i18n
class=
"inner-form-title">TRANSCODING
</div>
554 <div i18n
class=
"inner-form-description">
555 Process uploaded videos so that they are in a streamable form that any device can play. Though costly in
556 resources, this is a critical part of PeerTube, so tread carefully.
560 <div class=
"form-group form-group-right col-12 col-lg-8 col-xl-9">
562 <ng-container formGroupName=
"transcoding">
564 <div class=
"form-group">
565 <my-peertube-checkbox inputName=
"transcodingEnabled" formControlName=
"enabled">
566 <ng-template ptTemplate=
"label">
567 <ng-container i18n
>Transcoding enabled
</ng-container>
570 <ng-template ptTemplate=
"help">
571 <ng-container i18n
>If you disable transcoding, many videos from your users will not work!
</ng-container>
574 <ng-container ngProjectAs=
"extra">
576 <div class=
"form-group" [ngClass]=
"{ 'disabled-checkbox-extra': !isTranscodingEnabled() }">
577 <my-peertube-checkbox
578 inputName=
"transcodingAllowAdditionalExtensions" formControlName=
"allowAdditionalExtensions"
579 i18n-labelText
labelText=
"Allow additional extensions"
581 <ng-container ngProjectAs=
"description">
582 <span i18n
>Allow your users to upload .mkv, .mov, .avi and .flv videos.
</span>
584 </my-peertube-checkbox>
587 <div class=
"form-group" [ngClass]=
"{ 'disabled-checkbox-extra': !isTranscodingEnabled() }">
588 <my-peertube-checkbox
589 inputName=
"transcodingAllowAudioFiles" formControlName=
"allowAudioFiles"
590 i18n-labelText
labelText=
"Allow audio files upload"
592 <ng-container ngProjectAs=
"description">
593 <span i18n
>Allow your users to upload audio files that will be merged with the preview file on upload.
</span>
595 </my-peertube-checkbox>
598 <ng-container formGroupName=
"webtorrent">
599 <div class=
"form-group" [ngClass]=
"{ 'disabled-checkbox-extra': !isTranscodingEnabled() }">
600 <my-peertube-checkbox
601 inputName=
"transcodingWebTorrentEnabled" formControlName=
"enabled"
602 i18n-labelText
labelText=
"WebTorrent support enabled"
604 <ng-template ptTemplate=
"help">
606 <strong>Experimental, we suggest you to not disable webtorrent support for now
</strong>
608 <p>If you also enabled HLS support, it will multiply videos storage by
2</p>
612 <strong>If disabled, breaks federation with PeerTube instances <
2.1</strong>
615 </my-peertube-checkbox>
619 <ng-container formGroupName=
"hls">
620 <div class=
"form-group" [ngClass]=
"{ 'disabled-checkbox-extra': !isTranscodingEnabled() }">
621 <my-peertube-checkbox
622 inputName=
"transcodingHlsEnabled" formControlName=
"enabled"
623 i18n-labelText
labelText=
"HLS support enabled"
625 <ng-template ptTemplate=
"help">
627 <strong>Requires ffmpeg
>=
4.1</strong>
629 <p>Generate HLS playlists and fragmented MP4 files resulting in a better playback than with the current default player:
</p>
631 <li>Resolution change is smoother
</li>
632 <li>Faster playback in particular with long videos
</li>
633 <li>More stable playback (less bugs/infinite loading)
</li>
636 <p>If you also enabled WebTorrent support, it will multiply videos storage by
2</p>
639 </my-peertube-checkbox>
644 </my-peertube-checkbox>
647 <div class=
"form-group">
649 <div class=
"form-group" [ngClass]=
"{ 'disabled-checkbox-extra': !isTranscodingEnabled() }">
650 <label i18n
for=
"transcodingThreads">Transcoding threads
</label>
651 <div class=
"peertube-select-container">
652 <select id=
"transcodingThreads" formControlName=
"threads">
653 <option *
ngFor=
"let transcodingThreadOption of transcodingThreadOptions" [value]=
"transcodingThreadOption.value">
654 {{ transcodingThreadOption.label }}
658 <div *
ngIf=
"formErrors.transcoding.threads" class=
"form-error">{{ formErrors.transcoding.threads }}
</div>
663 <div class=
"form-group" [ngClass]=
"{ 'disabled-checkbox-extra': !isTranscodingEnabled() }">
665 <label i18n
for=
"transcodingThreads">Resolutions to generate
</label>
667 <div class=
"ml-2 mt-2 d-flex flex-column">
668 <ng-container formGroupName=
"resolutions">
669 <div class=
"form-group" *
ngFor=
"let resolution of resolutions">
670 <my-peertube-checkbox
671 [inputName]=
"getResolutionKey(resolution.id)" [formControlName]=
"resolution.id"
672 labelText=
"{{resolution.label}}"
674 <ng-template *
ngIf=
"resolution.description" ptTemplate=
"help">
675 <div [innerHTML]=
"resolution.description"></div>
677 </my-peertube-checkbox>
689 <div class=
"form-row mt-4"> <!-- cache grid -->
690 <div class=
"form-group col-12 col-lg-4 col-xl-3">
691 <div i18n
class=
"inner-form-title">CACHE
</div>
692 <div i18n
class=
"inner-form-description">
693 Some files are not federated, and fetched when necessary. Define their caching policies.
697 <div class=
"form-group form-group-right col-12 col-lg-8 col-xl-9">
699 <ng-container formGroupName=
"cache">
700 <div class=
"form-group" formGroupName=
"previews">
701 <label i18n
for=
"cachePreviewsSize">Number of previews to keep in cache
</label>
703 type=
"number" min=
"0" id=
"cachePreviewsSize"
704 formControlName=
"size" [ngClass]=
"{ 'input-error': formErrors['cache.previews.size'] }"
706 <div *
ngIf=
"formErrors.cache.previews.size" class=
"form-error">{{ formErrors.cache.previews.size }}
</div>
709 <div class=
"form-group" formGroupName=
"captions">
710 <label i18n
for=
"cacheCaptionsSize">Number of video captions to keep in cache
</label>
712 type=
"number" min=
"0" id=
"cacheCaptionsSize"
713 formControlName=
"size" [ngClass]=
"{ 'input-error': formErrors['cache.captions.size'] }"
715 <div *
ngIf=
"formErrors.cache.captions.size" class=
"form-error">{{ formErrors.cache.captions.size }}
</div>
722 <div class=
"form-row mt-4"> <!-- cache grid -->
723 <div class=
"form-group col-12 col-lg-4 col-xl-3">
724 <div class=
"anchor" id=
"customizations"></div> <!-- customizations anchor -->
725 <div i18n
class=
"inner-form-title">CUSTOMIZATIONS
</div>
726 <div i18n
class=
"inner-form-description">
727 Slight modifications to your PeerTube instance for when creating a plugin or theme is overkill.
731 <div class=
"form-group form-group-right col-12 col-lg-8 col-xl-9">
733 <ng-container formGroupName=
"instance">
734 <ng-container formGroupName=
"customizations">
735 <div class=
"form-group">
736 <label i18n
for=
"customizationJavascript">JavaScript
</label>
738 <ng-template ptTemplate=
"customHtml">
740 Write JavaScript code directly.
<br />Example:
<pre>console.log('my instance is amazing');
</pre>
746 id=
"customizationJavascript" formControlName=
"javascript"
747 [ngClass]=
"{ 'input-error': formErrors['instance.customizations.javascript'] }"
750 <div *
ngIf=
"formErrors.instance.customizations.javascript" class=
"form-error">{{ formErrors.instance.customizations.javascript }}
</div>
753 <div class=
"form-group">
754 <label for=
"customizationCSS">CSS
</label>
757 <ng-template ptTemplate=
"customHtml">
759 Write CSS code directly. Example:
<br /><br />
761 #custom-css {{ '{' }}
765 Prepend with
<em>#custom-css
</em> to override styles. Example:
<br /><br />
767 #custom-css .logged-in-email {{ '{' }}
776 id=
"customizationCSS" formControlName=
"css"
777 [ngClass]=
"{ 'input-error': formErrors['instance.customizations.css'] }"
779 <div *
ngIf=
"formErrors.instance.customizations.css" class=
"form-error">{{ formErrors.instance.customizations.css }}
</div>
791 <div class=
"form-row mt-4"> <!-- submit placement block -->
792 <div class=
"col-md-7 col-xl-5"></div>
793 <div class=
"col-md-5 col-xl-5">
794 <input (click)=
"formValidated()" type=
"submit" i18n-value
value=
"Update configuration" [disabled]=
"!form.valid">
795 <span class=
"form-error" i18n *
ngIf=
"!form.valid">It seems like the configuration is invalid. Please search for potential errors in the different tabs.
</span>