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=
"hot">Hot videos
</option>
48 <option i18n
value=
"most-viewed">Most viewed videos
</option>
49 <option i18n
value=
"most-liked">Most liked videos
</option>
53 <div *
ngIf=
"formErrors.trending.videos.algorithms.default" class=
"form-error">{{ formErrors.trending.videos.algorithms.default }}
</div>
58 <ng-container formGroupName=
"client">
60 <ng-container formGroupName=
"videos">
61 <ng-container formGroupName=
"miniature">
62 <div class=
"form-group">
64 inputName=
"clientVideosMiniaturePreferAuthorDisplayName" formControlName=
"preferAuthorDisplayName"
65 i18n-labelText
labelText=
"Prefer author display name in video miniature"
66 ></my-peertube-checkbox>
71 <ng-container formGroupName=
"menu">
72 <ng-container formGroupName=
"login">
73 <div class=
"form-group">
75 inputName=
"clientMenuLoginRedirectOnSingleExternalAuth" formControlName=
"redirectOnSingleExternalAuth"
76 i18n-labelText
labelText=
"Redirect users on single external auth when users click on the login button in menu"
78 <ng-container ngProjectAs=
"description">
79 <span *
ngIf=
"countExternalAuth() === 0" i18n
>⚠️ You don't have any external auth plugin enabled.
</span>
80 <span *
ngIf=
"countExternalAuth() > 1" i18n
>⚠️ You have multiple external auth plugins enabled.
</span>
82 </my-peertube-checkbox>
91 <div class=
"row mt-4"> <!-- broadcast grid -->
92 <div class=
"col-12 col-lg-4 col-xl-3">
93 <div i18n
class=
"inner-form-title">BROADCAST MESSAGE
</div>
94 <div i18n
class=
"inner-form-description">
95 Display a message on your instance
99 <div class=
"col-12 col-lg-8 col-xl-9">
101 <ng-container formGroupName=
"broadcastMessage">
103 <div class=
"form-group">
104 <my-peertube-checkbox
105 inputName=
"broadcastMessageEnabled" formControlName=
"enabled"
106 i18n-labelText
labelText=
"Enable broadcast message"
107 ></my-peertube-checkbox>
110 <div class=
"form-group">
111 <my-peertube-checkbox
112 inputName=
"broadcastMessageDismissable" formControlName=
"dismissable"
113 i18n-labelText
labelText=
"Allow users to dismiss the broadcast message "
114 ></my-peertube-checkbox>
117 <div class=
"form-group">
118 <label i18n
for=
"broadcastMessageLevel">Broadcast message level
</label>
120 <div class=
"peertube-select-container">
121 <select id=
"broadcastMessageLevel" formControlName=
"level" class=
"form-control">
122 <option value=
"info">info
</option>
123 <option value=
"warning">warning
</option>
124 <option value=
"error">error
</option>
128 <div *
ngIf=
"formErrors.broadcastMessage.level" class=
"form-error">{{ formErrors.broadcastMessage.level }}
</div>
131 <div class=
"form-group">
132 <label i18n
for=
"broadcastMessageMessage">Message
</label><my-help helpType=
"markdownText"></my-help>
134 <my-markdown-textarea
135 name=
"broadcastMessageMessage" formControlName=
"message"
136 [formError]=
"formErrors['broadcastMessage.message']"
137 ></my-markdown-textarea>
139 <div *
ngIf=
"formErrors.broadcastMessage.message" class=
"form-error">{{ formErrors.broadcastMessage.message }}
</div>
147 <div class=
"row mt-4"> <!-- new users grid -->
148 <div class=
"col-12 col-lg-4 col-xl-3">
149 <div i18n
class=
"inner-form-title">NEW USERS
</div>
150 <div i18n
class=
"inner-form-description">
151 Manage
<a class=
"link-orange" routerLink=
"/admin/users">users
</a> to set their quota individually.
155 <div class=
"col-12 col-lg-8 col-xl-9">
157 <ng-container formGroupName=
"signup">
158 <div class=
"form-group">
159 <my-peertube-checkbox
160 inputName=
"signupEnabled" formControlName=
"enabled"
161 i18n-labelText
labelText=
"Enable Signup"
163 <ng-container ngProjectAs=
"description">
164 <span i18n
>⚠️ This functionality requires a lot of attention and extra moderation.
</span>
166 <div class=
"alert pt-alert-primary alert-signup" *
ngIf=
"signupAlertMessage">{{ signupAlertMessage }}
</div>
169 <ng-container ngProjectAs=
"extra">
170 <my-peertube-checkbox [ngClass]=
"getDisabledSignupClass()"
171 inputName=
"signupRequiresEmailVerification" formControlName=
"requiresEmailVerification"
172 i18n-labelText
labelText=
"Signup requires email verification"
173 ></my-peertube-checkbox>
175 <div [ngClass]=
"getDisabledSignupClass()" class=
"mt-3">
176 <label i18n
for=
"signupLimit">Signup limit
</label>
178 <div class=
"number-with-unit">
180 type=
"number" min=
"-1" id=
"signupLimit" class=
"form-control"
181 formControlName=
"limit" [ngClass]=
"{ 'input-error': formErrors['signup.limit'] }"
183 <span i18n
>{form.value['signup']['limit'], plural, =
1 {user} other {users}}
</span>
186 <div *
ngIf=
"formErrors.signup.limit" class=
"form-error">{{ formErrors.signup.limit }}
</div>
188 <small i18n *
ngIf=
"hasUnlimitedSignup()" class=
"muted small">Signup won't be limited to a fixed number of users.
</small>
191 <div [ngClass]=
"getDisabledSignupClass()" class=
"mt-3">
192 <label i18n
for=
"signupMinimumAge">Minimum required age to create an account
</label>
194 <div class=
"number-with-unit">
196 type=
"number" min=
"1" id=
"signupMinimumAge" class=
"form-control"
197 formControlName=
"minimumAge" [ngClass]=
"{ 'input-error': formErrors['signup.minimumAge'] }"
199 <span i18n
>{form.value['signup']['minimumAge'], plural, =
1 {year old} other {years old}}
</span>
202 <div *
ngIf=
"formErrors.signup.minimumAge" class=
"form-error">{{ formErrors.signup.minimumAge }}
</div>
205 </my-peertube-checkbox>
209 <ng-container formGroupName=
"user">
210 <div class=
"form-group">
211 <label i18n
for=
"userVideoQuota">Default video quota per user
</label>
213 <my-select-custom-value
215 [items]=
"getVideoQuotaOptions()"
216 formControlName=
"videoQuota"
217 i18n-inputSuffix
inputSuffix=
"bytes" inputType=
"number"
219 ></my-select-custom-value>
221 <my-user-real-quota-info [videoQuota]=
"getUserVideoQuota()"></my-user-real-quota-info>
223 <div *
ngIf=
"formErrors.user.videoQuota" class=
"form-error">{{ formErrors.user.videoQuota }}
</div>
226 <div class=
"form-group">
227 <label i18n
for=
"userVideoQuotaDaily">Default daily upload limit per user
</label>
229 <my-select-custom-value
230 id=
"userVideoQuotaDaily"
231 [items]=
"getVideoQuotaDailyOptions()"
232 formControlName=
"videoQuotaDaily"
233 i18n-inputSuffix
inputSuffix=
"bytes" inputType=
"number"
235 ></my-select-custom-value>
237 <div *
ngIf=
"formErrors.user.videoQuotaDaily" class=
"form-error">{{ formErrors.user.videoQuotaDaily }}
</div>
244 <div class=
"row mt-4"> <!-- videos grid -->
245 <div class=
"col-12 col-lg-4 col-xl-3">
246 <div i18n
class=
"inner-form-title">VIDEOS
</div>
249 <div class=
"col-12 col-lg-8 col-xl-9">
251 <ng-container formGroupName=
"import">
253 <ng-container formGroupName=
"videos">
255 <div class=
"form-group">
256 <label i18n
for=
"importConcurrency">Import jobs concurrency
</label>
257 <span i18n
class=
"small muted ms-1">allows to import multiple videos in parallel. ⚠️ Requires a PeerTube restart.
</span>
259 <div class=
"number-with-unit">
260 <input type=
"number" name=
"importConcurrency" formControlName=
"concurrency" />
261 <span i18n
>jobs in parallel
</span>
264 <div *
ngIf=
"formErrors.import.concurrency" class=
"form-error">{{ formErrors.import.concurrency }}
</div>
267 <div class=
"form-group" formGroupName=
"http">
268 <my-peertube-checkbox
269 inputName=
"importVideosHttpEnabled" formControlName=
"enabled"
270 i18n-labelText
labelText=
"Allow import with HTTP URL (e.g. YouTube)"
272 <ng-container ngProjectAs=
"description">
273 <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>
275 </my-peertube-checkbox>
278 <div class=
"form-group" formGroupName=
"torrent">
279 <my-peertube-checkbox
280 inputName=
"importVideosTorrentEnabled" formControlName=
"enabled"
281 i18n-labelText
labelText=
"Allow import with a torrent file or a magnet URI"
283 <ng-container ngProjectAs=
"description">
284 <span i18n
>⚠️ We don't recommend to enable this feature if you don't trust your users
</span>
286 </my-peertube-checkbox>
291 <ng-container formGroupName=
"videoChannelSynchronization">
292 <div class=
"form-group">
293 <my-peertube-checkbox
294 inputName=
"importSynchronizationEnabled" formControlName=
"enabled"
295 i18n-labelText
labelText=
"Allow channel synchronization with channel of other platforms like YouTube (requires allowing import with HTTP URL)"
297 <ng-container ngProjectAs=
"description">
298 <span i18n [hidden]=
"isImportVideosHttpEnabled()">
299 ⛔ You need to allow import with HTTP URL to be able to activate this feature.
302 </my-peertube-checkbox>
308 <ng-container formGroupName=
"autoBlacklist">
309 <ng-container formGroupName=
"videos">
310 <ng-container formGroupName=
"ofUsers">
312 <div class=
"form-group">
313 <my-peertube-checkbox
314 inputName=
"autoBlacklistVideosOfUsersEnabled" formControlName=
"enabled"
315 i18n-labelText
labelText=
"Block new videos automatically"
317 <ng-container ngProjectAs=
"description">
318 <span i18n
>Unless a user is marked as trusted, their videos will stay private until a moderator reviews them.
</span>
320 </my-peertube-checkbox>
330 <div class=
"row mt-4"> <!-- video channels grid -->
331 <div class=
"col-12 col-lg-4 col-xl-3">
332 <div i18n
class=
"inner-form-title">VIDEO CHANNELS
</div>
335 <div class=
"col-12 col-lg-8 col-xl-9">
336 <div class=
"form-group" formGroupName=
"videoChannels">
337 <label i18n
for=
"videoChannelsMaxPerUser">Max video channels per user
</label>
339 <div class=
"number-with-unit">
341 type=
"number" min=
"1" id=
"videoChannelsMaxPerUser" class=
"form-control"
342 formControlName=
"maxPerUser" [ngClass]=
"{ 'input-error': formErrors['videoChannels.maxPerUser'] }"
344 <span i18n
>{form.value['videoChannels']['maxPerUser'], plural, =
1 {channel} other {channels}}
</span>
347 <div *
ngIf=
"formErrors.videoChannels.maxPerUser" class=
"form-error">{{ formErrors.videoChannels.maxPerUser }}
</div>
352 <div class=
"row mt-4"> <!-- search grid -->
353 <div class=
"col-12 col-lg-4 col-xl-3">
354 <div i18n
class=
"inner-form-title">SEARCH
</div>
357 <div class=
"col-12 col-lg-8 col-xl-9">
359 <ng-container formGroupName=
"search">
360 <ng-container formGroupName=
"remoteUri">
362 <div class=
"form-group">
363 <my-peertube-checkbox
364 inputName=
"searchRemoteUriUsers" formControlName=
"users"
365 i18n-labelText
labelText=
"Allow users to do remote URI/handle search"
367 <ng-container ngProjectAs=
"description">
368 <span i18n
>Allow
<strong>your users
</strong> to look up remote videos/actors that may not be federated with your instance
</span>
370 </my-peertube-checkbox>
373 <div class=
"form-group">
374 <my-peertube-checkbox
375 inputName=
"searchRemoteUriAnonymous" formControlName=
"anonymous"
376 i18n-labelText
labelText=
"Allow anonymous to do remote URI/handle search"
378 <ng-container ngProjectAs=
"description">
379 <span i18n
>Allow
<strong>anonymous users
</strong> to look up remote videos/actors that may not be federated with your instance
</span>
381 </my-peertube-checkbox>
386 <ng-container formGroupName=
"searchIndex">
387 <div class=
"form-group">
388 <my-peertube-checkbox
389 inputName=
"searchIndexEnabled" formControlName=
"enabled"
390 i18n-labelText
labelText=
"Enable global search"
392 <ng-container ngProjectAs=
"description">
393 <div i18n
>⚠️ This functionality depends heavily on the moderation of instances followed by the search index you select.
</div>
396 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>.
400 <ng-container ngProjectAs=
"extra">
401 <div [ngClass]=
"getDisabledSearchIndexClass()">
402 <label i18n
for=
"searchIndexUrl">Search index URL
</label>
405 type=
"text" id=
"searchIndexUrl" class=
"form-control"
406 formControlName=
"url" [ngClass]=
"{ 'input-error': formErrors['search.searchIndex.url'] }"
409 <div *
ngIf=
"formErrors.search.searchIndex.url" class=
"form-error">{{ formErrors.search.searchIndex.url }}
</div>
413 <my-peertube-checkbox [ngClass]=
"getDisabledSearchIndexClass()"
414 inputName=
"searchIndexDisableLocalSearch" formControlName=
"disableLocalSearch"
415 i18n-labelText
labelText=
"Disable local search in search bar"
416 ></my-peertube-checkbox>
420 <my-peertube-checkbox [ngClass]=
"getDisabledSearchIndexClass()"
421 inputName=
"searchIndexIsDefaultSearch" formControlName=
"isDefaultSearch"
422 i18n-labelText
labelText=
"Search bar uses the global search index by default"
424 <ng-container ngProjectAs=
"description">
425 <span i18n
>Otherwise the local search stays used by default
</span>
427 </my-peertube-checkbox>
431 </my-peertube-checkbox>
441 <div class=
"row mt-4"> <!-- federation grid -->
442 <div class=
"col-12 col-lg-4 col-xl-3">
443 <div i18n
class=
"inner-form-title">FEDERATION
</div>
444 <div i18n
class=
"inner-form-description">
445 Manage
<a class=
"link-orange" routerLink=
"/admin/follows">relations
</a> with other instances.
449 <div class=
"col-12 col-lg-8 col-xl-9">
451 <ng-container formGroupName=
"followers">
452 <ng-container formGroupName=
"instance">
454 <div class=
"form-group">
455 <my-peertube-checkbox
456 inputName=
"followersInstanceEnabled" formControlName=
"enabled"
457 i18n-labelText
labelText=
"Other instances can follow yours"
458 ></my-peertube-checkbox>
461 <div class=
"form-group">
462 <my-peertube-checkbox
463 inputName=
"followersInstanceManualApproval" formControlName=
"manualApproval"
464 i18n-labelText
labelText=
"Manually approve new instance followers"
465 ></my-peertube-checkbox>
470 <ng-container formGroupName=
"followings">
471 <ng-container formGroupName=
"instance">
473 <ng-container formGroupName=
"autoFollowBack">
474 <div class=
"form-group">
475 <my-peertube-checkbox
476 inputName=
"followingsInstanceAutoFollowBackEnabled" formControlName=
"enabled"
477 i18n-labelText
labelText=
"Automatically follow back instances"
479 <ng-container ngProjectAs=
"description">
480 <span i18n
>⚠️ This functionality requires a lot of attention and extra moderation.
</span>
482 </my-peertube-checkbox>
486 <ng-container formGroupName=
"autoFollowIndex">
487 <div class=
"form-group">
488 <my-peertube-checkbox
489 inputName=
"followingsInstanceAutoFollowIndexEnabled" formControlName=
"enabled"
490 i18n-labelText
labelText=
"Automatically follow instances of a public index"
492 <ng-container ngProjectAs=
"description">
493 <div i18n
>⚠️ This functionality requires a lot of attention and extra moderation.
</div>
496 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
500 <ng-container ngProjectAs=
"extra">
501 <div [ngClass]=
"{ 'disabled-checkbox-extra': !isAutoFollowIndexEnabled() }">
502 <label i18n
for=
"followingsInstanceAutoFollowIndexUrl">Index URL
</label>
504 type=
"text" id=
"followingsInstanceAutoFollowIndexUrl" class=
"form-control"
505 formControlName=
"indexUrl" [ngClass]=
"{ 'input-error': formErrors['followings.instance.autoFollowIndex.indexUrl'] }"
507 <div *
ngIf=
"formErrors.followings.instance.autoFollowIndex.indexUrl" class=
"form-error">{{ formErrors.followings.instance.autoFollowIndex.indexUrl }}
</div>
510 </my-peertube-checkbox>
520 <div class=
"row mt-4"> <!-- administrators grid -->
521 <div class=
"col-12 col-lg-4 col-xl-3">
522 <div i18n
class=
"inner-form-title">ADMINISTRATORS
</div>
525 <div class=
"col-12 col-lg-8 col-xl-9">
527 <div class=
"form-group" formGroupName=
"admin">
528 <label i18n
for=
"adminEmail">Admin email
</label>
531 type=
"text" id=
"adminEmail" class=
"form-control"
532 formControlName=
"email" [ngClass]=
"{ 'input-error': formErrors['admin.email'] }"
535 <div *
ngIf=
"formErrors.admin.email" class=
"form-error">{{ formErrors.admin.email }}
</div>
538 <div class=
"form-group" formGroupName=
"contactForm">
539 <my-peertube-checkbox
540 inputName=
"enableContactForm" formControlName=
"enabled"
541 i18n-labelText
labelText=
"Enable contact form"
542 ></my-peertube-checkbox>
548 <div class=
"row mt-4"> <!-- Twitter grid -->
549 <div class=
"col-12 col-lg-4 col-xl-3">
550 <div i18n
class=
"inner-form-title">TWITTER
</div>
551 <div i18n
class=
"inner-form-description">
552 Provide the Twitter account representing your instance to improve link previews.
553 If you don't have a Twitter account, just leave the default value.
557 <div class=
"col-12 col-lg-8 col-xl-9">
559 <ng-container formGroupName=
"services">
560 <ng-container formGroupName=
"twitter">
562 <div class=
"form-group">
563 <label for=
"servicesTwitterUsername" i18n
>Your Twitter username
</label>
566 type=
"text" id=
"servicesTwitterUsername" class=
"form-control"
567 formControlName=
"username" [ngClass]=
"{ 'input-error': formErrors['services.twitter.username'] }"
570 <div *
ngIf=
"formErrors.services.twitter.username" class=
"form-error">{{ formErrors.services.twitter.username }}
</div>
573 <div class=
"form-group">
574 <my-peertube-checkbox inputName=
"servicesTwitterWhitelisted" formControlName=
"whitelisted">
575 <ng-template ptTemplate=
"label">
576 <ng-container i18n
>Instance allowed by Twitter
</ng-container>
579 <ng-template ptTemplate=
"help">
581 If your instance is explicitly allowed by Twitter, a video player will be embedded in the Twitter feed on PeerTube video share.
<br />
582 If the instance is not, we use an image link card that will redirect to your PeerTube instance.
<br /><br />
583 Check this checkbox, save the configuration and test with a video URL of your instance (https://example.com/w/blabla) on
584 <a class=
"link-orange" target='_blank' rel='noopener noreferrer' href='https://cards-dev.twitter.com/validator'
>https://cards-dev.twitter.com/validator
</a>
585 to see if you instance is allowed.
588 </my-peertube-checkbox>