1 <ng-container [formGroup]=
"form">
2 <div class=
"row mt-5"> <!-- appearance grid -->
3 <div class=
"col-12 col-lg-4 col-xl-3">
4 <div i18n
class=
"inner-form-title">APPEARANCE
</div>
5 <div i18n
class=
"inner-form-description">
6 Use
<a class=
"link-orange" routerLink=
"/admin/plugins">plugins & themes
</a> for more involved changes, or add slight
<a class=
"link-orange" routerLink=
"/admin/config/edit-custom" fragment=
"advanced-configuration">customizations
</a>.
10 <div class=
"col-12 col-lg-8 col-xl-9">
12 <ng-container formGroupName=
"theme">
13 <div class=
"form-group">
14 <label i18n
for=
"themeDefault">Theme
</label>
16 <div class=
"peertube-select-container">
17 <select formControlName=
"default" id=
"themeDefault" class=
"form-control">
18 <option i18n
value=
"default">{{ getDefaultThemeLabel() }}
</option>
20 <option *
ngFor=
"let theme of availableThemes" [value]=
"theme.id">{{ theme.label }}
</option>
26 <div class=
"form-group" formGroupName=
"instance">
27 <label i18n
for=
"instanceDefaultClientRoute">Landing page
</label>
29 <my-select-custom-value
30 id=
"instanceDefaultClientRoute"
31 [items]=
"defaultLandingPageOptions"
32 formControlName=
"defaultClientRoute"
35 ></my-select-custom-value>
37 <div *
ngIf=
"formErrors.instance.defaultClientRoute" class=
"form-error">{{ formErrors.instance.defaultClientRoute }}
</div>
40 <div class=
"form-group" formGroupName=
"trending">
41 <ng-container formGroupName=
"videos">
42 <ng-container formGroupName=
"algorithms">
43 <label i18n
for=
"trendingVideosAlgorithmsDefault">Default trending page
</label>
45 <div class=
"peertube-select-container">
46 <select id=
"trendingVideosAlgorithmsDefault" formControlName=
"default" class=
"form-control">
47 <option i18n
value=
"publishedAt">Recently added videos
</option>
48 <option i18n
value=
"originallyPublishedAt">Original publication date
</option>
49 <option i18n
value=
"name">Name
</option>
50 <option i18n
value=
"hot">Hot videos
</option>
51 <option i18n
value=
"most-viewed">Recent views
</option>
52 <option i18n
value=
"most-liked">Most liked videos
</option>
53 <option i18n
value=
"views">Global views
</option>
57 <div *
ngIf=
"formErrors.trending.videos.algorithms.default" class=
"form-error">{{ formErrors.trending.videos.algorithms.default }}
</div>
62 <ng-container formGroupName=
"client">
64 <ng-container formGroupName=
"videos">
65 <ng-container formGroupName=
"miniature">
66 <div class=
"form-group">
68 inputName=
"clientVideosMiniaturePreferAuthorDisplayName" formControlName=
"preferAuthorDisplayName"
69 i18n-labelText
labelText=
"Prefer author display name in video miniature"
70 ></my-peertube-checkbox>
75 <ng-container formGroupName=
"menu">
76 <ng-container formGroupName=
"login">
77 <div class=
"form-group">
79 inputName=
"clientMenuLoginRedirectOnSingleExternalAuth" formControlName=
"redirectOnSingleExternalAuth"
80 i18n-labelText
labelText=
"Redirect users on single external auth when users click on the login button in menu"
82 <ng-container ngProjectAs=
"description">
83 <span *
ngIf=
"countExternalAuth() === 0" i18n
>⚠️ You don't have any external auth plugin enabled.
</span>
84 <span *
ngIf=
"countExternalAuth() > 1" i18n
>⚠️ You have multiple external auth plugins enabled.
</span>
86 </my-peertube-checkbox>
95 <div class=
"row mt-4"> <!-- broadcast grid -->
96 <div class=
"col-12 col-lg-4 col-xl-3">
97 <div i18n
class=
"inner-form-title">BROADCAST MESSAGE
</div>
98 <div i18n
class=
"inner-form-description">
99 Display a message on your instance
103 <div class=
"col-12 col-lg-8 col-xl-9">
105 <ng-container formGroupName=
"broadcastMessage">
107 <div class=
"form-group">
108 <my-peertube-checkbox
109 inputName=
"broadcastMessageEnabled" formControlName=
"enabled"
110 i18n-labelText
labelText=
"Enable broadcast message"
111 ></my-peertube-checkbox>
114 <div class=
"form-group">
115 <my-peertube-checkbox
116 inputName=
"broadcastMessageDismissable" formControlName=
"dismissable"
117 i18n-labelText
labelText=
"Allow users to dismiss the broadcast message "
118 ></my-peertube-checkbox>
121 <div class=
"form-group">
122 <label i18n
for=
"broadcastMessageLevel">Broadcast message level
</label>
124 <div class=
"peertube-select-container">
125 <select id=
"broadcastMessageLevel" formControlName=
"level" class=
"form-control">
126 <option value=
"info">info
</option>
127 <option value=
"warning">warning
</option>
128 <option value=
"error">error
</option>
132 <div *
ngIf=
"formErrors.broadcastMessage.level" class=
"form-error">{{ formErrors.broadcastMessage.level }}
</div>
135 <div class=
"form-group">
136 <label i18n
for=
"broadcastMessageMessage">Message
</label><my-help helpType=
"markdownText"></my-help>
138 <my-markdown-textarea
139 name=
"broadcastMessageMessage" formControlName=
"message"
140 [formError]=
"formErrors['broadcastMessage.message']"
141 ></my-markdown-textarea>
143 <div *
ngIf=
"formErrors.broadcastMessage.message" class=
"form-error">{{ formErrors.broadcastMessage.message }}
</div>
151 <div class=
"row mt-4"> <!-- new users grid -->
152 <div class=
"col-12 col-lg-4 col-xl-3">
153 <div i18n
class=
"inner-form-title">NEW USERS
</div>
154 <div i18n
class=
"inner-form-description">
155 Manage
<a class=
"link-orange" routerLink=
"/admin/users">users
</a> to set their quota individually.
159 <div class=
"col-12 col-lg-8 col-xl-9">
161 <ng-container formGroupName=
"signup">
162 <div class=
"form-group">
163 <my-peertube-checkbox
164 inputName=
"signupEnabled" formControlName=
"enabled"
165 i18n-labelText
labelText=
"Enable Signup"
167 <ng-container ngProjectAs=
"description">
168 <span i18n
>⚠️ This functionality requires a lot of attention and extra moderation.
</span>
170 <div class=
"alert pt-alert-primary alert-signup" *
ngIf=
"signupAlertMessage">{{ signupAlertMessage }}
</div>
173 <ng-container ngProjectAs=
"extra">
174 <my-peertube-checkbox [ngClass]=
"getDisabledSignupClass()"
175 inputName=
"signupRequiresEmailVerification" formControlName=
"requiresEmailVerification"
176 i18n-labelText
labelText=
"Signup requires email verification"
177 ></my-peertube-checkbox>
179 <div [ngClass]=
"getDisabledSignupClass()" class=
"mt-3">
180 <label i18n
for=
"signupLimit">Signup limit
</label>
182 <div class=
"number-with-unit">
184 type=
"number" min=
"-1" id=
"signupLimit" class=
"form-control"
185 formControlName=
"limit" [ngClass]=
"{ 'input-error': formErrors['signup.limit'] }"
187 <span i18n
>{form.value['signup']['limit'], plural, =
1 {user} other {users}}
</span>
190 <div *
ngIf=
"formErrors.signup.limit" class=
"form-error">{{ formErrors.signup.limit }}
</div>
192 <small i18n *
ngIf=
"hasUnlimitedSignup()" class=
"muted small">Signup won't be limited to a fixed number of users.
</small>
195 <div [ngClass]=
"getDisabledSignupClass()" class=
"mt-3">
196 <label i18n
for=
"signupMinimumAge">Minimum required age to create an account
</label>
198 <div class=
"number-with-unit">
200 type=
"number" min=
"1" id=
"signupMinimumAge" class=
"form-control"
201 formControlName=
"minimumAge" [ngClass]=
"{ 'input-error': formErrors['signup.minimumAge'] }"
203 <span i18n
>{form.value['signup']['minimumAge'], plural, =
1 {year old} other {years old}}
</span>
206 <div *
ngIf=
"formErrors.signup.minimumAge" class=
"form-error">{{ formErrors.signup.minimumAge }}
</div>
209 </my-peertube-checkbox>
213 <ng-container formGroupName=
"user">
214 <div class=
"form-group">
215 <label i18n
for=
"userVideoQuota">Default video quota per user
</label>
217 <my-select-custom-value
219 [items]=
"getVideoQuotaOptions()"
220 formControlName=
"videoQuota"
221 i18n-inputSuffix
inputSuffix=
"bytes" inputType=
"number"
223 ></my-select-custom-value>
225 <my-user-real-quota-info [videoQuota]=
"getUserVideoQuota()"></my-user-real-quota-info>
227 <div *
ngIf=
"formErrors.user.videoQuota" class=
"form-error">{{ formErrors.user.videoQuota }}
</div>
230 <div class=
"form-group">
231 <label i18n
for=
"userVideoQuotaDaily">Default daily upload limit per user
</label>
233 <my-select-custom-value
234 id=
"userVideoQuotaDaily"
235 [items]=
"getVideoQuotaDailyOptions()"
236 formControlName=
"videoQuotaDaily"
237 i18n-inputSuffix
inputSuffix=
"bytes" inputType=
"number"
239 ></my-select-custom-value>
241 <div *
ngIf=
"formErrors.user.videoQuotaDaily" class=
"form-error">{{ formErrors.user.videoQuotaDaily }}
</div>
248 <div class=
"row mt-4"> <!-- videos grid -->
249 <div class=
"col-12 col-lg-4 col-xl-3">
250 <div i18n
class=
"inner-form-title">VIDEOS
</div>
253 <div class=
"col-12 col-lg-8 col-xl-9">
255 <ng-container formGroupName=
"import">
257 <ng-container formGroupName=
"videos">
259 <div class=
"form-group">
260 <label i18n
for=
"importConcurrency">Import jobs concurrency
</label>
261 <span i18n
class=
"small muted ms-1">allows to import multiple videos in parallel. ⚠️ Requires a PeerTube restart.
</span>
263 <div class=
"number-with-unit">
264 <input type=
"number" name=
"importConcurrency" formControlName=
"concurrency" />
265 <span i18n
>jobs in parallel
</span>
268 <div *
ngIf=
"formErrors.import.concurrency" class=
"form-error">{{ formErrors.import.concurrency }}
</div>
271 <div class=
"form-group" formGroupName=
"http">
272 <my-peertube-checkbox
273 inputName=
"importVideosHttpEnabled" formControlName=
"enabled"
274 i18n-labelText
labelText=
"Allow import with HTTP URL (e.g. YouTube)"
276 <ng-container ngProjectAs=
"description">
277 <span i18n
>⚠️ If enabled, we recommend to use
<a class=
"link-orange" href=
"https://docs.joinpeertube.org/maintain-configuration?id=security">a HTTP proxy
</a> to prevent private URL access from your PeerTube server
</span>
279 </my-peertube-checkbox>
282 <div class=
"form-group" formGroupName=
"torrent">
283 <my-peertube-checkbox
284 inputName=
"importVideosTorrentEnabled" formControlName=
"enabled"
285 i18n-labelText
labelText=
"Allow import with a torrent file or a magnet URI"
287 <ng-container ngProjectAs=
"description">
288 <span i18n
>⚠️ We don't recommend to enable this feature if you don't trust your users
</span>
290 </my-peertube-checkbox>
295 <ng-container formGroupName=
"videoChannelSynchronization">
296 <div class=
"form-group">
297 <my-peertube-checkbox
298 inputName=
"importSynchronizationEnabled" formControlName=
"enabled"
299 i18n-labelText
labelText=
"Allow channel synchronization with channel of other platforms like YouTube (requires allowing import with HTTP URL)"
301 <ng-container ngProjectAs=
"description">
302 <span i18n [hidden]=
"isImportVideosHttpEnabled()">
303 ⛔ You need to allow import with HTTP URL to be able to activate this feature.
306 </my-peertube-checkbox>
312 <ng-container formGroupName=
"autoBlacklist">
313 <ng-container formGroupName=
"videos">
314 <ng-container formGroupName=
"ofUsers">
316 <div class=
"form-group">
317 <my-peertube-checkbox
318 inputName=
"autoBlacklistVideosOfUsersEnabled" formControlName=
"enabled"
319 i18n-labelText
labelText=
"Block new videos automatically"
321 <ng-container ngProjectAs=
"description">
322 <span i18n
>Unless a user is marked as trusted, their videos will stay private until a moderator reviews them.
</span>
324 </my-peertube-checkbox>
334 <div class=
"row mt-4"> <!-- video channels grid -->
335 <div class=
"col-12 col-lg-4 col-xl-3">
336 <div i18n
class=
"inner-form-title">VIDEO CHANNELS
</div>
339 <div class=
"col-12 col-lg-8 col-xl-9">
340 <div class=
"form-group" formGroupName=
"videoChannels">
341 <label i18n
for=
"videoChannelsMaxPerUser">Max video channels per user
</label>
343 <div class=
"number-with-unit">
345 type=
"number" min=
"1" id=
"videoChannelsMaxPerUser" class=
"form-control"
346 formControlName=
"maxPerUser" [ngClass]=
"{ 'input-error': formErrors['videoChannels.maxPerUser'] }"
348 <span i18n
>{form.value['videoChannels']['maxPerUser'], plural, =
1 {channel} other {channels}}
</span>
351 <div *
ngIf=
"formErrors.videoChannels.maxPerUser" class=
"form-error">{{ formErrors.videoChannels.maxPerUser }}
</div>
356 <div class=
"row mt-4"> <!-- search grid -->
357 <div class=
"col-12 col-lg-4 col-xl-3">
358 <div i18n
class=
"inner-form-title">SEARCH
</div>
361 <div class=
"col-12 col-lg-8 col-xl-9">
363 <ng-container formGroupName=
"search">
364 <ng-container formGroupName=
"remoteUri">
366 <div class=
"form-group">
367 <my-peertube-checkbox
368 inputName=
"searchRemoteUriUsers" formControlName=
"users"
369 i18n-labelText
labelText=
"Allow users to do remote URI/handle search"
371 <ng-container ngProjectAs=
"description">
372 <span i18n
>Allow
<strong>your users
</strong> to look up remote videos/actors that may not be federated with your instance
</span>
374 </my-peertube-checkbox>
377 <div class=
"form-group">
378 <my-peertube-checkbox
379 inputName=
"searchRemoteUriAnonymous" formControlName=
"anonymous"
380 i18n-labelText
labelText=
"Allow anonymous to do remote URI/handle search"
382 <ng-container ngProjectAs=
"description">
383 <span i18n
>Allow
<strong>anonymous users
</strong> to look up remote videos/actors that may not be federated with your instance
</span>
385 </my-peertube-checkbox>
390 <ng-container formGroupName=
"searchIndex">
391 <div class=
"form-group">
392 <my-peertube-checkbox
393 inputName=
"searchIndexEnabled" formControlName=
"enabled"
394 i18n-labelText
labelText=
"Enable global search"
396 <ng-container ngProjectAs=
"description">
397 <div i18n
>⚠️ This functionality depends heavily on the moderation of instances followed by the search index you select.
</div>
400 You should only use moderated search indexes in production, or
<a class=
"link-orange" href=
"https://framagit.org/framasoft/peertube/search-index">host your own
</a>.
404 <ng-container ngProjectAs=
"extra">
405 <div [ngClass]=
"getDisabledSearchIndexClass()">
406 <label i18n
for=
"searchIndexUrl">Search index URL
</label>
409 type=
"text" id=
"searchIndexUrl" class=
"form-control"
410 formControlName=
"url" [ngClass]=
"{ 'input-error': formErrors['search.searchIndex.url'] }"
413 <div *
ngIf=
"formErrors.search.searchIndex.url" class=
"form-error">{{ formErrors.search.searchIndex.url }}
</div>
417 <my-peertube-checkbox [ngClass]=
"getDisabledSearchIndexClass()"
418 inputName=
"searchIndexDisableLocalSearch" formControlName=
"disableLocalSearch"
419 i18n-labelText
labelText=
"Disable local search in search bar"
420 ></my-peertube-checkbox>
424 <my-peertube-checkbox [ngClass]=
"getDisabledSearchIndexClass()"
425 inputName=
"searchIndexIsDefaultSearch" formControlName=
"isDefaultSearch"
426 i18n-labelText
labelText=
"Search bar uses the global search index by default"
428 <ng-container ngProjectAs=
"description">
429 <span i18n
>Otherwise the local search stays used by default
</span>
431 </my-peertube-checkbox>
435 </my-peertube-checkbox>
445 <div class=
"row mt-4"> <!-- federation grid -->
446 <div class=
"col-12 col-lg-4 col-xl-3">
447 <div i18n
class=
"inner-form-title">FEDERATION
</div>
448 <div i18n
class=
"inner-form-description">
449 Manage
<a class=
"link-orange" routerLink=
"/admin/follows">relations
</a> with other instances.
453 <div class=
"col-12 col-lg-8 col-xl-9">
455 <ng-container formGroupName=
"followers">
456 <ng-container formGroupName=
"instance">
458 <div class=
"form-group">
459 <my-peertube-checkbox
460 inputName=
"followersInstanceEnabled" formControlName=
"enabled"
461 i18n-labelText
labelText=
"Other instances can follow yours"
462 ></my-peertube-checkbox>
465 <div class=
"form-group">
466 <my-peertube-checkbox
467 inputName=
"followersInstanceManualApproval" formControlName=
"manualApproval"
468 i18n-labelText
labelText=
"Manually approve new instance followers"
469 ></my-peertube-checkbox>
474 <ng-container formGroupName=
"followings">
475 <ng-container formGroupName=
"instance">
477 <ng-container formGroupName=
"autoFollowBack">
478 <div class=
"form-group">
479 <my-peertube-checkbox
480 inputName=
"followingsInstanceAutoFollowBackEnabled" formControlName=
"enabled"
481 i18n-labelText
labelText=
"Automatically follow back instances"
483 <ng-container ngProjectAs=
"description">
484 <span i18n
>⚠️ This functionality requires a lot of attention and extra moderation.
</span>
486 </my-peertube-checkbox>
490 <ng-container formGroupName=
"autoFollowIndex">
491 <div class=
"form-group">
492 <my-peertube-checkbox
493 inputName=
"followingsInstanceAutoFollowIndexEnabled" formControlName=
"enabled"
494 i18n-labelText
labelText=
"Automatically follow instances of a public index"
496 <ng-container ngProjectAs=
"description">
497 <div i18n
>⚠️ This functionality requires a lot of attention and extra moderation.
</div>
500 See
<a class=
"link-orange" href=
"https://docs.joinpeertube.org/admin-following-instances?id=automatically-follow-other-instances" rel=
"noopener noreferrer" target=
"_blank">the documentation
</a> for more information about the expected URL
504 <ng-container ngProjectAs=
"extra">
505 <div [ngClass]=
"{ 'disabled-checkbox-extra': !isAutoFollowIndexEnabled() }">
506 <label i18n
for=
"followingsInstanceAutoFollowIndexUrl">Index URL
</label>
508 type=
"text" id=
"followingsInstanceAutoFollowIndexUrl" class=
"form-control"
509 formControlName=
"indexUrl" [ngClass]=
"{ 'input-error': formErrors['followings.instance.autoFollowIndex.indexUrl'] }"
511 <div *
ngIf=
"formErrors.followings.instance.autoFollowIndex.indexUrl" class=
"form-error">{{ formErrors.followings.instance.autoFollowIndex.indexUrl }}
</div>
514 </my-peertube-checkbox>
524 <div class=
"row mt-4"> <!-- administrators grid -->
525 <div class=
"col-12 col-lg-4 col-xl-3">
526 <div i18n
class=
"inner-form-title">ADMINISTRATORS
</div>
529 <div class=
"col-12 col-lg-8 col-xl-9">
531 <div class=
"form-group" formGroupName=
"admin">
532 <label i18n
for=
"adminEmail">Admin email
</label>
535 type=
"text" id=
"adminEmail" class=
"form-control"
536 formControlName=
"email" [ngClass]=
"{ 'input-error': formErrors['admin.email'] }"
539 <div *
ngIf=
"formErrors.admin.email" class=
"form-error">{{ formErrors.admin.email }}
</div>
542 <div class=
"form-group" formGroupName=
"contactForm">
543 <my-peertube-checkbox
544 inputName=
"enableContactForm" formControlName=
"enabled"
545 i18n-labelText
labelText=
"Enable contact form"
546 ></my-peertube-checkbox>
552 <div class=
"row mt-4"> <!-- Twitter grid -->
553 <div class=
"col-12 col-lg-4 col-xl-3">
554 <div i18n
class=
"inner-form-title">TWITTER
</div>
555 <div i18n
class=
"inner-form-description">
556 Provide the Twitter account representing your instance to improve link previews.
557 If you don't have a Twitter account, just leave the default value.
561 <div class=
"col-12 col-lg-8 col-xl-9">
563 <ng-container formGroupName=
"services">
564 <ng-container formGroupName=
"twitter">
566 <div class=
"form-group">
567 <label for=
"servicesTwitterUsername" i18n
>Your Twitter username
</label>
570 type=
"text" id=
"servicesTwitterUsername" class=
"form-control"
571 formControlName=
"username" [ngClass]=
"{ 'input-error': formErrors['services.twitter.username'] }"
574 <div *
ngIf=
"formErrors.services.twitter.username" class=
"form-error">{{ formErrors.services.twitter.username }}
</div>
577 <div class=
"form-group">
578 <my-peertube-checkbox inputName=
"servicesTwitterWhitelisted" formControlName=
"whitelisted">
579 <ng-template ptTemplate=
"label">
580 <ng-container i18n
>Instance allowed by Twitter
</ng-container>
583 <ng-template ptTemplate=
"help">
585 If your instance is explicitly allowed by Twitter, a video player will be embedded in the Twitter feed on PeerTube video share.
<br />
586 If the instance is not, we use an image link card that will redirect to your PeerTube instance.
<br /><br />
587 Check this checkbox, save the configuration and test with a video URL of your instance (https://example.com/w/blabla) on
588 <a class=
"link-orange" target='_blank' rel='noopener noreferrer' href='https://cards-dev.twitter.com/validator'
>https://cards-dev.twitter.com/validator
</a>
589 to see if you instance is allowed.
592 </my-peertube-checkbox>