1 <h1 class=
"sr-only" i18n
>Configuration
</h1>
2 <form role=
"form" [formGroup]=
"form">
4 <div ngbNav #
nav=
"ngbNav" class=
"nav-tabs">
6 <ng-container ngbNavItem=
"instance-information">
7 <a ngbNavLink i18n
>Instance information
</a>
9 <ng-template ngbNavContent
>
11 <ng-container formGroupName=
"instance">
13 <div class=
"form-row mt-5"> <!-- instance grid -->
14 <div class=
"form-group col-12 col-lg-4 col-xl-3">
15 <div i18n
class=
"inner-form-title">INSTANCE
</div>
18 <div class=
"form-group form-group-right col-12 col-lg-8 col-xl-9">
20 <div class=
"form-group">
21 <label i18n
for=
"instanceName">Name
</label>
23 type=
"text" id=
"instanceName" class=
"form-control"
24 formControlName=
"name" [ngClass]=
"{ 'input-error': formErrors.instance.name }"
26 <div *
ngIf=
"formErrors.instance.name" class=
"form-error">{{ formErrors.instance.name }}
</div>
29 <div class=
"form-group">
30 <label i18n
for=
"instanceShortDescription">Short description
</label>
32 id=
"instanceShortDescription" formControlName=
"shortDescription" class=
"form-control small"
33 [ngClass]=
"{ 'input-error': formErrors['instance.shortDescription'] }"
35 <div *
ngIf=
"formErrors.instance.shortDescription" class=
"form-error">{{ formErrors.instance.shortDescription }}
</div>
38 <div class=
"form-group">
39 <label i18n
for=
"instanceDescription">Description
</label><my-help helpType=
"markdownText"></my-help>
41 name=
"instanceDescription" formControlName=
"description" textareaMaxWidth=
"500px"
42 [classes]=
"{ 'input-error': formErrors['instance.description'] }"
43 ></my-markdown-textarea>
44 <div *
ngIf=
"formErrors.instance.description" class=
"form-error">{{ formErrors.instance.description }}
</div>
47 <div class=
"form-group">
48 <label i18n
for=
"instanceCategories">Main instance categories
</label>
52 inputId=
"instanceCategories" [options]=
"categoryItems" formControlName=
"categories" [showToggleAll]=
"false"
53 [defaultLabel]=
"getDefaultCategoryLabel()" [selectedItemsLabel]=
"getSelectedCategoryLabel()"
54 emptyFilterMessage=
"No results found" i18n-emptyFilterMessage
59 <div class=
"form-group">
60 <label i18n
for=
"instanceLanguages">Main languages you/your moderators speak
</label>
64 inputId=
"instanceLanguages" [options]=
"languageItems" formControlName=
"languages" [showToggleAll]=
"false"
65 [defaultLabel]=
"getDefaultLanguageLabel()" [selectedItemsLabel]=
"getSelectedLanguageLabel()"
66 emptyFilterMessage=
"No results found" i18n-emptyFilterMessage
74 <div class=
"form-row mt-4"> <!-- moderation & nsfw grid -->
75 <div class=
"form-group col-12 col-lg-4 col-xl-3">
76 <div i18n
class=
"inner-form-title">MODERATION & NSFW
</div>
77 <div i18n
class=
"inner-for-description">
78 Manage
<a routerLink=
"/admin/users">users
</a> to build a moderation team.
82 <div class=
"form-group form-group-right col-12 col-lg-8 col-xl-9">
84 <div class=
"form-group">
85 <my-peertube-checkbox inputName=
"instanceIsNSFW" formControlName=
"isNSFW">
86 <ng-template ptTemplate=
"label">
87 <ng-container i18n
>This instance is dedicated to sensitive or NSFW content
</ng-container>
90 <ng-template ptTemplate=
"help">
92 Enabling it will allow other administrators to know that you are mainly federating sensitive content.
<br /><br />
93 Moreover, the NSFW checkbox on video upload will be automatically checked by default.
96 </my-peertube-checkbox>
99 <div class=
"form-group">
100 <label i18n
for=
"instanceDefaultNSFWPolicy">Policy on videos containing sensitive content
</label>
103 <ng-template ptTemplate=
"customHtml">
105 With
<strong>Do not list
</strong> or
<strong>Blur thumbnails
</strong>, a confirmation will be requested to watch the video.
110 <div class=
"peertube-select-container">
111 <select id=
"instanceDefaultNSFWPolicy" formControlName=
"defaultNSFWPolicy" class=
"form-control">
112 <option i18n
value=
"undefined" disabled
>Policy for sensitive videos
</option>
113 <option i18n
value=
"do_not_list">Do not list
</option>
114 <option i18n
value=
"blur">Blur thumbnails
</option>
115 <option i18n
value=
"display">Display
</option>
118 <div *
ngIf=
"formErrors.instance.defaultNSFWPolicy" class=
"form-error">{{ formErrors.instance.defaultNSFWPolicy }}
</div>
121 <div class=
"form-group">
122 <label i18n
for=
"instanceTerms">Terms
</label><my-help helpType=
"markdownText"></my-help>
123 <my-markdown-textarea
124 name=
"instanceTerms" formControlName=
"terms" textareaMaxWidth=
"500px"
125 [ngClass]=
"{ 'input-error': formErrors['instance.terms'] }"
126 ></my-markdown-textarea>
127 <div *
ngIf=
"formErrors.instance.terms" class=
"form-error">{{ formErrors.instance.terms }}
</div>
130 <div class=
"form-group">
131 <label i18n
for=
"instanceCodeOfConduct">Code of conduct
</label><my-help helpType=
"markdownText"></my-help>
132 <my-markdown-textarea
133 name=
"instanceCodeOfConduct" formControlName=
"codeOfConduct" textareaMaxWidth=
"500px"
134 [ngClass]=
"{ 'input-error': formErrors['instance.codeOfConduct'] }"
135 ></my-markdown-textarea>
136 <div *
ngIf=
"formErrors.instance.codeOfConduct" class=
"form-error">{{ formErrors.instance.codeOfConduct }}
</div>
139 <div class=
"form-group">
140 <label i18n
for=
"instanceModerationInformation">Moderation information
</label><my-help helpType=
"markdownText"></my-help>
141 <div i18n
class=
"label-small-info">Who moderates the instance? What is the policy regarding NSFW videos? Political videos? etc
</div>
143 <my-markdown-textarea
144 name=
"instanceModerationInformation" formControlName=
"moderationInformation" textareaMaxWidth=
"500px"
145 [ngClass]=
"{ 'input-error': formErrors['instance.moderationInformation'] }"
146 ></my-markdown-textarea>
147 <div *
ngIf=
"formErrors.instance.moderationInformation" class=
"form-error">{{ formErrors.instance.moderationInformation }}
</div>
153 <div class=
"form-row mt-4"> <!-- you and your instance grid -->
154 <div class=
"form-group col-12 col-lg-4 col-xl-3">
155 <div i18n
class=
"inner-form-title">YOU AND YOUR INSTANCE
</div>
158 <div class=
"form-group form-group-right col-12 col-lg-8 col-xl-9">
160 <div class=
"form-group">
161 <label i18n
for=
"instanceAdministrator">Who is behind the instance?
</label>
162 <div i18n
class=
"label-small-info">A single person? A non-profit? A company?
</div>
164 <my-markdown-textarea
165 name=
"instanceAdministrator" formControlName=
"administrator" textareaMaxWidth=
"500px" textareaHeight=
"75px"
166 [classes]=
"{ 'input-error': formErrors['instance.administrator'] }"
167 ></my-markdown-textarea>
169 <div *
ngIf=
"formErrors.instance.administrator" class=
"form-error">{{ formErrors.instance.administrator }}
</div>
172 <div class=
"form-group">
173 <label i18n
for=
"instanceCreationReason">Why did you create this instance?
</label>
174 <div i18n
class=
"label-small-info">To share your personal videos? To open registrations and allow people to upload what they want?
</div>
177 id=
"instanceCreationReason" formControlName=
"creationReason" class=
"small" class=
"form-control"
178 [ngClass]=
"{ 'input-error': formErrors['instance.creationReason'] }"
180 <div *
ngIf=
"formErrors.instance.creationReason" class=
"form-error">{{ formErrors.instance.creationReason }}
</div>
183 <div class=
"form-group">
184 <label i18n
for=
"instanceMaintenanceLifetime">How long do you plan to maintain this instance?
</label>
185 <div i18n
class=
"label-small-info">It's important to know for users who want to register on your instance
</div>
188 id=
"instanceMaintenanceLifetime" formControlName=
"maintenanceLifetime" class=
"form-control small"
189 [ngClass]=
"{ 'input-error': formErrors['instance.maintenanceLifetime'] }"
191 <div *
ngIf=
"formErrors.instance.maintenanceLifetime" class=
"form-error">{{ formErrors.instance.maintenanceLifetime }}
</div>
194 <div class=
"form-group">
195 <label i18n
for=
"instanceBusinessModel">How will you finance the PeerTube server?
</label>
196 <div i18n
class=
"label-small-info">With your own funds? With user donations? Advertising?
</div>
199 id=
"instanceBusinessModel" formControlName=
"businessModel" class=
"form-control small"
200 [ngClass]=
"{ 'input-error': formErrors['instance.businessModel'] }"
202 <div *
ngIf=
"formErrors.instance.businessModel" class=
"form-error">{{ formErrors.instance.businessModel }}
</div>
208 <div class=
"form-row mt-4"> <!-- other information grid -->
209 <div class=
"form-group col-12 col-lg-4 col-xl-3">
210 <div i18n
class=
"inner-form-title">OTHER INFORMATION
</div>
213 <div class=
"form-group form-group-right col-12 col-lg-8 col-xl-9">
215 <div class=
"form-group">
216 <label i18n
for=
"instanceHardwareInformation">What server/hardware does the instance run on?
</label>
217 <div i18n
class=
"label-small-info">i.e.
2vCore
2GB RAM, a direct the link to the server you rent, etc.
</div>
219 <my-markdown-textarea
220 name=
"instanceHardwareInformation" formControlName=
"hardwareInformation" textareaMaxWidth=
"500px" textareaHeight=
"75px"
221 [classes]=
"{ 'input-error': formErrors['instance.hardwareInformation'] }"
222 ></my-markdown-textarea>
224 <div *
ngIf=
"formErrors.instance.hardwareInformation" class=
"form-error">{{ formErrors.instance.hardwareInformation }}
</div>
234 <ng-container ngbNavItem=
"basic-configuration">
235 <a ngbNavLink i18n
>Basic configuration
</a>
237 <ng-template ngbNavContent
>
239 <div class=
"form-row mt-5"> <!-- appearance grid -->
240 <div class=
"form-group col-12 col-lg-4 col-xl-3">
241 <div i18n
class=
"inner-form-title">APPEARANCE
</div>
242 <div i18n
class=
"inner-for-description">
243 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>.
247 <div class=
"form-group form-group-right col-12 col-lg-8 col-xl-9">
249 <ng-container formGroupName=
"theme">
250 <div class=
"form-group">
251 <label i18n
for=
"themeDefault">Theme
</label>
253 <div class=
"peertube-select-container">
254 <select formControlName=
"default" id=
"themeDefault" class=
"form-control">
255 <option i18n
value=
"default">default
</option>
257 <option *
ngFor=
"let theme of availableThemes" [value]=
"theme">{{ theme }}
</option>
263 <div class=
"form-group" formGroupName=
"instance">
264 <label i18n
for=
"instanceDefaultClientRoute">Landing page
</label>
265 <div class=
"peertube-select-container">
266 <select id=
"instanceDefaultClientRoute" formControlName=
"defaultClientRoute" class=
"form-control">
267 <option i18n
value=
"/videos/overview">Discover videos
</option>
268 <option i18n
value=
"/videos/trending">Trending videos
</option>
269 <option i18n
value=
"/videos/most-liked">Most liked videos
</option>
270 <option i18n
value=
"/videos/recently-added">Recently added videos
</option>
271 <option i18n
value=
"/videos/local">Local videos
</option>
274 <div *
ngIf=
"formErrors.instance.defaultClientRoute" class=
"form-error">{{ formErrors.instance.defaultClientRoute }}
</div>
280 <div class=
"form-row mt-4"> <!-- broadcast grid -->
281 <div class=
"form-group col-12 col-lg-4 col-xl-3">
282 <div i18n
class=
"inner-form-title">BROADCAST MESSAGE
</div>
283 <div i18n
class=
"inner-for-description">
284 Display a message on your instance
288 <div class=
"form-group form-group-right col-12 col-lg-8 col-xl-9">
290 <ng-container formGroupName=
"broadcastMessage">
292 <div class=
"form-group">
293 <my-peertube-checkbox
294 inputName=
"broadcastMessageEnabled" formControlName=
"enabled"
295 i18n-labelText
labelText=
"Enable broadcast message"
296 ></my-peertube-checkbox>
299 <div class=
"form-group">
300 <my-peertube-checkbox
301 inputName=
"broadcastMessageDismissable" formControlName=
"dismissable"
302 i18n-labelText
labelText=
"Allow users to dismiss the broadcast message "
303 ></my-peertube-checkbox>
306 <div class=
"form-group">
307 <label i18n
for=
"broadcastMessageLevel">Broadcast message level
</label>
308 <div class=
"peertube-select-container">
309 <select id=
"broadcastMessageLevel" formControlName=
"level" class=
"form-control">
310 <option value=
"info">info
</option>
311 <option value=
"warning">warning
</option>
312 <option value=
"error">error
</option>
315 <div *
ngIf=
"formErrors.broadcastMessage.level" class=
"form-error">{{ formErrors.broadcastMessage.level }}
</div>
318 <div class=
"form-group">
319 <label i18n
for=
"broadcastMessageMessage">Message
</label><my-help helpType=
"markdownText"></my-help>
320 <my-markdown-textarea
321 name=
"broadcastMessageMessage" formControlName=
"message" textareaMaxWidth=
"500px"
322 [classes]=
"{ 'input-error': formErrors['broadcastMessage.message'] }"
323 ></my-markdown-textarea>
324 <div *
ngIf=
"formErrors.broadcastMessage.message" class=
"form-error">{{ formErrors.broadcastMessage.message }}
</div>
332 <div class=
"form-row mt-4"> <!-- new users grid -->
333 <div class=
"form-group col-12 col-lg-4 col-xl-3">
334 <div i18n
class=
"inner-form-title">NEW USERS
</div>
335 <div i18n
class=
"inner-for-description">
336 Manage
<a routerLink=
"/admin/users">users
</a> to set their quota individually.
340 <div class=
"form-group form-group-right col-12 col-lg-8 col-xl-9">
342 <ng-container formGroupName=
"signup">
343 <div class=
"form-group">
344 <my-peertube-checkbox
345 inputName=
"signupEnabled" formControlName=
"enabled"
346 i18n-labelText
labelText=
"Enable Signup"
348 <ng-container ngProjectAs=
"description">
349 <span i18n
>⚠️ This functionality requires a lot of attention and extra moderation.
</span>
351 <ng-container ngProjectAs=
"extra">
352 <my-peertube-checkbox [ngClass]=
"{ 'disabled-checkbox-extra': !isSignupEnabled() }"
353 inputName=
"signupRequiresEmailVerification" formControlName=
"requiresEmailVerification"
354 i18n-labelText
labelText=
"Signup requires email verification"
355 ></my-peertube-checkbox>
357 <div [ngClass]=
"{ 'disabled-checkbox-extra': !isSignupEnabled() }" class=
"mt-3">
358 <label i18n
for=
"signupLimit">Signup limit
</label>
360 type=
"number" min=
"-1" id=
"signupLimit" class=
"form-control"
361 formControlName=
"limit" [ngClass]=
"{ 'input-error': formErrors['signup.limit'] }"
363 <div *
ngIf=
"formErrors.signup.limit" class=
"form-error">{{ formErrors.signup.limit }}
</div>
364 <small *
ngIf=
"form.value['signup']['limit'] === -1" class=
"text-muted">Signup won't be limited to a fixed number of users.
</small>
367 </my-peertube-checkbox>
371 <ng-container formGroupName=
"user">
372 <div class=
"form-group">
373 <label i18n
for=
"userVideoQuota">Default video quota per user
</label>
374 <div class=
"peertube-select-container">
375 <select id=
"userVideoQuota" formControlName=
"videoQuota" class=
"form-control">
376 <option *
ngFor=
"let videoQuotaOption of videoQuotaOptions" [value]=
"videoQuotaOption.value" [disabled]=
"videoQuotaOption.disabled">
377 {{ videoQuotaOption.label }}
381 <div *
ngIf=
"formErrors.user.videoQuota" class=
"form-error">{{ formErrors.user.videoQuota }}
</div>
384 <div class=
"form-group">
385 <label i18n
for=
"userVideoQuotaDaily">Default daily upload limit per user
</label>
386 <div class=
"peertube-select-container">
387 <select id=
"userVideoQuotaDaily" formControlName=
"videoQuotaDaily" class=
"form-control">
388 <option *
ngFor=
"let videoQuotaDailyOption of videoQuotaDailyOptions" [value]=
"videoQuotaDailyOption.value" [disabled]=
"videoQuotaDailyOption.disabled">
389 {{ videoQuotaDailyOption.label }}
393 <div *
ngIf=
"formErrors.user.videoQuotaDaily" class=
"form-error">{{ formErrors.user.videoQuotaDaily }}
</div>
400 <div class=
"form-row mt-4"> <!-- videos grid -->
401 <div class=
"form-group col-12 col-lg-4 col-xl-3">
402 <div i18n
class=
"inner-form-title">VIDEOS
</div>
405 <div class=
"form-group form-group-right col-12 col-lg-8 col-xl-9">
407 <ng-container formGroupName=
"import">
408 <ng-container formGroupName=
"videos">
410 <div class=
"form-group" formGroupName=
"http">
411 <my-peertube-checkbox
412 inputName=
"importVideosHttpEnabled" formControlName=
"enabled"
413 i18n-labelText
labelText=
"Allow import with HTTP URL (i.e. YouTube)"
414 ></my-peertube-checkbox>
417 <div class=
"form-group" formGroupName=
"torrent">
418 <my-peertube-checkbox
419 inputName=
"importVideosTorrentEnabled" formControlName=
"enabled"
420 i18n-labelText
labelText=
"Allow import with a torrent file or a magnet URI"
421 ></my-peertube-checkbox>
427 <ng-container formGroupName=
"autoBlacklist">
428 <ng-container formGroupName=
"videos">
429 <ng-container formGroupName=
"ofUsers">
431 <div class=
"form-group">
432 <my-peertube-checkbox
433 inputName=
"autoBlacklistVideosOfUsersEnabled" formControlName=
"enabled"
434 i18n-labelText
labelText=
"Block new videos automatically"
436 <ng-container ngProjectAs=
"description">
437 <span i18n
>Unless a user is marked as trusted, their videos will stay private until a moderator reviews them.
</span>
439 </my-peertube-checkbox>
449 <div class=
"form-row mt-4"> <!-- search grid -->
450 <div class=
"form-group col-12 col-lg-4 col-xl-3">
451 <div i18n
class=
"inner-form-title">SEARCH
</div>
454 <div class=
"form-group form-group-right col-12 col-lg-8 col-xl-9">
456 <ng-container formGroupName=
"search">
457 <ng-container formGroupName=
"remoteUri">
459 <div class=
"form-group">
460 <my-peertube-checkbox
461 inputName=
"searchRemoteUriUsers" formControlName=
"users"
462 i18n-labelText
labelText=
"Allow users to do remote URI/handle search"
464 <ng-container ngProjectAs=
"description">
465 <span i18n
>Allow
<strong>your users
</strong> to look up remote videos/actors by their URI, that may not be federated with your instance
</span>
467 </my-peertube-checkbox>
470 <div class=
"form-group">
471 <my-peertube-checkbox
472 inputName=
"searchRemoteUriAnonymous" formControlName=
"anonymous"
473 i18n-labelText
labelText=
"Allow anonymous to do remote URI/handle search"
475 <ng-container ngProjectAs=
"description">
476 <span i18n
>Allow
<strong>anonymous users
</strong> to look up remote videos/actors by their URI, that may not be federated with your instance
</span>
478 </my-peertube-checkbox>
483 <ng-container formGroupName=
"searchIndex">
484 <div class=
"form-group">
485 <my-peertube-checkbox
486 inputName=
"searchIndexEnabled" formControlName=
"enabled"
487 i18n-labelText
labelText=
"Enable global search"
489 <ng-container ngProjectAs=
"description">
490 <p i18n
>⚠️ This functionality depends heavily on the moderation of instances followed by the search index you select.
</p>
493 You should only use moderated search indexes in production, or
<a href=
"https://framagit.org/framasoft/peertube/search-index">host your own
</a>.
497 <ng-container ngProjectAs=
"extra">
498 <div [ngClass]=
"{ 'disabled-checkbox-extra': !isSearchIndexEnabled() }">
499 <label i18n
for=
"searchIndexUrl">Search index URL
</label>
501 type=
"text" id=
"searchIndexUrl" class=
"form-control"
502 formControlName=
"url" [ngClass]=
"{ 'input-error': formErrors['search.searchIndex.url'] }"
504 <div *
ngIf=
"formErrors.search.searchIndex.url" class=
"form-error">{{ formErrors.search.searchIndex.url }}
</div>
508 <my-peertube-checkbox [ngClass]=
"{ 'disabled-checkbox-extra': !isSearchIndexEnabled() }"
509 inputName=
"searchIndexDisableLocalSearch" formControlName=
"disableLocalSearch"
510 i18n-labelText
labelText=
"Disable local search in search bar"
511 ></my-peertube-checkbox>
515 <my-peertube-checkbox [ngClass]=
"{ 'disabled-checkbox-extra': !isSearchIndexEnabled() }"
516 inputName=
"searchIndexIsDefaultSearch" formControlName=
"isDefaultSearch"
517 i18n-labelText
labelText=
"Search bar uses the global search index by default"
519 <ng-container ngProjectAs=
"description">
520 <span i18n
>Otherwise the local search stays used by default
</span>
522 </my-peertube-checkbox>
526 </my-peertube-checkbox>
536 <div class=
"form-row mt-4"> <!-- federation grid -->
537 <div class=
"form-group col-12 col-lg-4 col-xl-3">
538 <div i18n
class=
"inner-form-title">FEDERATION
</div>
539 <div i18n
class=
"inner-form-description">
540 Manage
<a routerLink=
"/admin/follows">relations
</a> with other instances.
544 <div class=
"form-group form-group-right col-12 col-lg-8 col-xl-9">
546 <ng-container formGroupName=
"followers">
547 <ng-container formGroupName=
"instance">
549 <div class=
"form-group">
550 <my-peertube-checkbox
551 inputName=
"followersInstanceEnabled" formControlName=
"enabled"
552 i18n-labelText
labelText=
"Other instances can follow yours"
553 ></my-peertube-checkbox>
556 <div class=
"form-group">
557 <my-peertube-checkbox
558 inputName=
"followersInstanceManualApproval" formControlName=
"manualApproval"
559 i18n-labelText
labelText=
"Manually approve new instance followers"
560 ></my-peertube-checkbox>
565 <ng-container formGroupName=
"followings">
566 <ng-container formGroupName=
"instance">
568 <ng-container formGroupName=
"autoFollowBack">
569 <div class=
"form-group">
570 <my-peertube-checkbox
571 inputName=
"followingsInstanceAutoFollowBackEnabled" formControlName=
"enabled"
572 i18n-labelText
labelText=
"Automatically follow back instances"
574 <ng-container ngProjectAs=
"description">
575 <span i18n
>⚠️ This functionality requires a lot of attention and extra moderation.
</span>
577 </my-peertube-checkbox>
581 <ng-container formGroupName=
"autoFollowIndex">
582 <div class=
"form-group">
583 <my-peertube-checkbox
584 inputName=
"followingsInstanceAutoFollowIndexEnabled" formControlName=
"enabled"
585 i18n-labelText
labelText=
"Automatically follow instances of a public index"
587 <ng-container ngProjectAs=
"description">
588 <p i18n
>⚠️ This functionality requires a lot of attention and extra moderation.
</p>
591 You should only follow moderated indexes in production, or
<a href=
"https://framagit.org/framasoft/peertube/instances-peertube#peertube-auto-follow">host your own
</a>.
595 <ng-container ngProjectAs=
"extra">
596 <div [ngClass]=
"{ 'disabled-checkbox-extra': !isAutoFollowIndexEnabled() }">
597 <label i18n
for=
"followingsInstanceAutoFollowIndexUrl">Index URL
</label>
599 type=
"text" id=
"followingsInstanceAutoFollowIndexUrl" class=
"form-control"
600 formControlName=
"indexUrl" [ngClass]=
"{ 'input-error': formErrors['followings.instance.autoFollowIndex.indexUrl'] }"
602 <div *
ngIf=
"formErrors.followings.instance.autoFollowIndex.indexUrl" class=
"form-error">{{ formErrors.followings.instance.autoFollowIndex.indexUrl }}
</div>
605 </my-peertube-checkbox>
615 <div class=
"form-row mt-4"> <!-- administrators grid -->
616 <div class=
"form-group col-12 col-lg-4 col-xl-3">
617 <div i18n
class=
"inner-form-title">ADMINISTRATORS
</div>
620 <div class=
"form-group form-group-right col-12 col-lg-8 col-xl-9">
622 <div class=
"form-group" formGroupName=
"admin">
623 <label i18n
for=
"adminEmail">Admin email
</label>
625 type=
"text" id=
"adminEmail" class=
"form-control"
626 formControlName=
"email" [ngClass]=
"{ 'input-error': formErrors['admin.email'] }"
628 <div *
ngIf=
"formErrors.admin.email" class=
"form-error">{{ formErrors.admin.email }}
</div>
631 <div class=
"form-group" formGroupName=
"contactForm">
632 <my-peertube-checkbox
633 inputName=
"enableContactForm" formControlName=
"enabled"
634 i18n-labelText
labelText=
"Enable contact form"
635 ></my-peertube-checkbox>
644 <ng-container ngbNavItem=
"services">
645 <a ngbNavLink i18n
>Services
</a>
647 <ng-template ngbNavContent
>
649 <div class=
"form-row mt-5"> <!-- twitter grid -->
650 <div class=
"form-group col-12 col-lg-4 col-xl-3">
651 <div i18n
class=
"inner-form-title">TWITTER
</div>
652 <div i18n
class=
"inner-form-description">
653 Optional. If any, provide the Twitter account representing your instance to improve link previews.
657 <div class=
"form-group form-group-right col-12 col-lg-8 col-xl-9">
659 <ng-container formGroupName=
"services">
660 <ng-container formGroupName=
"twitter">
662 <div class=
"form-group">
663 <label i18n
for=
"signupLimit">Your Twitter username
</label>
666 type=
"text" id=
"servicesTwitterUsername" class=
"form-control"
667 formControlName=
"username" [ngClass]=
"{ 'input-error': formErrors['services.twitter.username'] }"
669 <div *
ngIf=
"formErrors.services.twitter.username" class=
"form-error">{{ formErrors.services.twitter.username }}
</div>
672 <div class=
"form-group">
673 <my-peertube-checkbox inputName=
"servicesTwitterWhitelisted" formControlName=
"whitelisted">
674 <ng-template ptTemplate=
"label">
675 <ng-container i18n
>Instance allowed by Twitter
</ng-container>
678 <ng-template ptTemplate=
"help">
680 If your instance is explicitly allowed by Twitter, a video player will be embedded in the Twitter feed on PeerTube video share.
<br />
681 If the instance is not, we use an image link card that will redirect on your PeerTube instance.
<br /><br />
682 Check this checkbox, save the configuration and test with a video URL of your instance (https://example.com/videos/watch/blabla) on
683 <a target='_blank' rel='noopener noreferrer' href='https://cards-dev.twitter.com/validator'
>https://cards-dev.twitter.com/validator
</a>
684 to see if you instance is allowed.
687 </my-peertube-checkbox>
698 <ng-container ngbNavItem=
"advanced-configuration">
699 <a ngbNavLink i18n
>Advanced configuration
</a>
701 <ng-template ngbNavContent
>
703 <div class=
"form-row mt-5"> <!-- transcoding grid -->
704 <div class=
"form-group col-12 col-lg-4 col-xl-3">
705 <div i18n
class=
"inner-form-title">TRANSCODING
</div>
706 <div i18n
class=
"inner-form-description">
707 Process uploaded videos so that they are in a streamable form that any device can play. Though costly in
708 resources, this is a critical part of PeerTube, so tread carefully.
712 <div class=
"form-group form-group-right col-12 col-lg-8 col-xl-9">
714 <ng-container formGroupName=
"transcoding">
716 <div class=
"form-group">
717 <my-peertube-checkbox inputName=
"transcodingEnabled" formControlName=
"enabled">
718 <ng-template ptTemplate=
"label">
719 <ng-container i18n
>Transcoding enabled
</ng-container>
722 <ng-template ptTemplate=
"help">
723 <ng-container i18n
>If you disable transcoding, many videos from your users will not work!
</ng-container>
726 <ng-container ngProjectAs=
"extra">
728 <div class=
"form-group" [ngClass]=
"{ 'disabled-checkbox-extra': !isTranscodingEnabled() }">
729 <my-peertube-checkbox
730 inputName=
"transcodingAllowAdditionalExtensions" formControlName=
"allowAdditionalExtensions"
731 i18n-labelText
labelText=
"Allow additional extensions"
733 <ng-container ngProjectAs=
"description">
734 <span i18n
>Allows users to upload .mkv, .mov, .avi and .flv videos.
</span>
736 </my-peertube-checkbox>
739 <div class=
"form-group" [ngClass]=
"{ 'disabled-checkbox-extra': !isTranscodingEnabled() }">
740 <my-peertube-checkbox
741 inputName=
"transcodingAllowAudioFiles" formControlName=
"allowAudioFiles"
742 i18n-labelText
labelText=
"Allow audio files upload"
744 <ng-container ngProjectAs=
"description">
745 <span i18n
>Allows users to upload audio files that will be merged with the preview file on upload.
</span>
747 </my-peertube-checkbox>
750 <ng-container formGroupName=
"webtorrent">
751 <div class=
"form-group" [ngClass]=
"{ 'disabled-checkbox-extra': !isTranscodingEnabled() }">
752 <my-peertube-checkbox
753 inputName=
"transcodingWebTorrentEnabled" formControlName=
"enabled"
754 i18n-labelText
labelText=
"WebTorrent support enabled"
756 <ng-template ptTemplate=
"help">
758 <strong>Experimental, we suggest you to not disable webtorrent support for now
</strong>
760 <p>If you also enabled HLS support, it will multiply videos storage by
2</p>
764 <strong>If disabled, breaks federation with PeerTube instances <
2.1</strong>
767 </my-peertube-checkbox>
771 <ng-container formGroupName=
"hls">
772 <div class=
"form-group" [ngClass]=
"{ 'disabled-checkbox-extra': !isTranscodingEnabled() }">
773 <my-peertube-checkbox
774 inputName=
"transcodingHlsEnabled" formControlName=
"enabled"
775 i18n-labelText
labelText=
"HLS with P2P support enabled"
777 <ng-template ptTemplate=
"help">
779 <strong>Requires ffmpeg
>=
4.1</strong>
781 <p>Generate HLS playlists and fragmented MP4 files resulting in a better playback than with the current default player:
</p>
783 <li>Resolution change is smoother
</li>
784 <li>Faster playback in particular with long videos
</li>
785 <li>More stable playback (less bugs/infinite loading)
</li>
788 <p>If you also enabled WebTorrent support, it will multiply videos storage by
2</p>
791 </my-peertube-checkbox>
796 </my-peertube-checkbox>
799 <div class=
"form-group" [ngClass]=
"{ 'disabled-checkbox-extra': !isTranscodingEnabled() }">
800 <label i18n
for=
"transcodingThreads">Transcoding threads
</label>
801 <div class=
"peertube-select-container">
802 <select id=
"transcodingThreads" formControlName=
"threads" class=
"form-control">
803 <option *
ngFor=
"let transcodingThreadOption of transcodingThreadOptions" [value]=
"transcodingThreadOption.value">
804 {{ transcodingThreadOption.label }}
808 <div *
ngIf=
"formErrors.transcoding.threads" class=
"form-error">{{ formErrors.transcoding.threads }}
</div>
811 <div class=
"form-group" [ngClass]=
"{ 'disabled-checkbox-extra': !isTranscodingEnabled() }">
813 <label i18n
for=
"transcodingThreads">Resolutions to generate
</label>
815 <div class=
"ml-2 mt-2 d-flex flex-column">
816 <ng-container formGroupName=
"resolutions">
817 <div class=
"form-group" *
ngFor=
"let resolution of resolutions">
818 <my-peertube-checkbox
819 [inputName]=
"getResolutionKey(resolution.id)" [formControlName]=
"resolution.id"
820 labelText=
"{{resolution.label}}"
822 <ng-template *
ngIf=
"resolution.description" ptTemplate=
"help">
823 <div [innerHTML]=
"resolution.description"></div>
825 </my-peertube-checkbox>
837 <div class=
"form-row mt-4"> <!-- cache grid -->
838 <div class=
"form-group col-12 col-lg-4 col-xl-3">
839 <div i18n
class=
"inner-form-title">CACHE
</div>
840 <div i18n
class=
"inner-form-description">
841 Some files are not federated, and fetched when necessary. Define their caching policies.
845 <div class=
"form-group form-group-right col-12 col-lg-8 col-xl-9">
847 <ng-container formGroupName=
"cache">
848 <div class=
"form-group" formGroupName=
"previews">
849 <label i18n
for=
"cachePreviewsSize">Number of previews to keep in cache
</label>
851 type=
"number" min=
"0" id=
"cachePreviewsSize" class=
"form-control"
852 formControlName=
"size" [ngClass]=
"{ 'input-error': formErrors['cache.previews.size'] }"
854 <div *
ngIf=
"formErrors.cache.previews.size" class=
"form-error">{{ formErrors.cache.previews.size }}
</div>
857 <div class=
"form-group" formGroupName=
"captions">
858 <label i18n
for=
"cacheCaptionsSize">Number of video captions to keep in cache
</label>
860 type=
"number" min=
"0" id=
"cacheCaptionsSize" class=
"form-control"
861 formControlName=
"size" [ngClass]=
"{ 'input-error': formErrors['cache.captions.size'] }"
863 <div *
ngIf=
"formErrors.cache.captions.size" class=
"form-error">{{ formErrors.cache.captions.size }}
</div>
870 <div class=
"form-row mt-4"> <!-- cache grid -->
871 <div class=
"form-group col-12 col-lg-4 col-xl-3">
872 <div class=
"anchor" id=
"customizations"></div> <!-- customizations anchor -->
873 <div i18n
class=
"inner-form-title">CUSTOMIZATIONS
</div>
874 <div i18n
class=
"inner-form-description">
875 Slight modifications to your PeerTube instance for when creating a plugin or theme is overkill.
879 <div class=
"form-group form-group-right col-12 col-lg-8 col-xl-9">
881 <ng-container formGroupName=
"instance">
882 <ng-container formGroupName=
"customizations">
883 <div class=
"form-group">
884 <label i18n
for=
"customizationJavascript">JavaScript
</label>
886 <ng-template ptTemplate=
"customHtml">
888 Write JavaScript code directly.
<br />Example:
<pre>console.log('my instance is amazing');
</pre>
894 id=
"customizationJavascript" formControlName=
"javascript" class=
"form-control"
895 [ngClass]=
"{ 'input-error': formErrors['instance.customizations.javascript'] }"
898 <div *
ngIf=
"formErrors.instance.customizations.javascript" class=
"form-error">{{ formErrors.instance.customizations.javascript }}
</div>
901 <div class=
"form-group">
902 <label for=
"customizationCSS">CSS
</label>
905 <ng-template ptTemplate=
"customHtml">
907 Write CSS code directly. Example:
<br /><br />
909 #custom-css {{ '{' }}
913 Prepend with
<em>#custom-css
</em> to override styles. Example:
<br /><br />
915 #custom-css .logged-in-email {{ '{' }}
924 id=
"customizationCSS" formControlName=
"css" class=
"form-control"
925 [ngClass]=
"{ 'input-error': formErrors['instance.customizations.css'] }"
927 <div *
ngIf=
"formErrors.instance.customizations.css" class=
"form-error">{{ formErrors.instance.customizations.css }}
</div>
939 <div [ngbNavOutlet]=
"nav"></div>
941 <div class=
"form-row mt-4"> <!-- submit placement block -->
942 <div class=
"col-md-7 col-xl-5"></div>
943 <div class=
"col-md-5 col-xl-5">
944 <span class=
"form-error submit-error" i18n *
ngIf=
"!form.valid">It seems like the configuration is invalid. Please search for potential errors in the different tabs.
</span>
946 <input (click)=
"formValidated()" type=
"submit" i18n-value
value=
"Update configuration" [disabled]=
"!form.valid">