aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-02-09 08:58:40 +0100
committerChocobozzz <me@florianbigard.com>2022-02-09 11:54:18 +0100
commit474542d7ac60f7860daf9ea34d1c31968f43ab29 (patch)
treec3e19095e19930d3955ce8d56d8c099bdda17923 /client/src/app
parentba8a8367e7fde7915ae6633445bf46ebf4a9fe94 (diff)
downloadPeerTube-474542d7ac60f7860daf9ea34d1c31968f43ab29.tar.gz
PeerTube-474542d7ac60f7860daf9ea34d1c31968f43ab29.tar.zst
PeerTube-474542d7ac60f7860daf9ea34d1c31968f43ab29.zip
Add additional checks when importing a video
Diffstat (limited to 'client/src/app')
-rw-r--r--client/src/app/+admin/config/edit-custom-config/edit-basic-configuration.component.html12
-rw-r--r--client/src/app/+admin/follows/follows.routes.ts7
2 files changed, 16 insertions, 3 deletions
diff --git a/client/src/app/+admin/config/edit-custom-config/edit-basic-configuration.component.html b/client/src/app/+admin/config/edit-custom-config/edit-basic-configuration.component.html
index c9533208a..37989cb59 100644
--- a/client/src/app/+admin/config/edit-custom-config/edit-basic-configuration.component.html
+++ b/client/src/app/+admin/config/edit-custom-config/edit-basic-configuration.component.html
@@ -267,14 +267,22 @@
267 <my-peertube-checkbox 267 <my-peertube-checkbox
268 inputName="importVideosHttpEnabled" formControlName="enabled" 268 inputName="importVideosHttpEnabled" formControlName="enabled"
269 i18n-labelText labelText="Allow import with HTTP URL (e.g. YouTube)" 269 i18n-labelText labelText="Allow import with HTTP URL (e.g. YouTube)"
270 ></my-peertube-checkbox> 270 >
271 <ng-container ngProjectAs="description">
272 <span i18n>⚠️ If enabled, we recommend to use <a href="https://docs.joinpeertube.org/maintain-configuration?id=security">a HTTP proxy</a> to prevent private URL access from your PeerTube server</span>
273 </ng-container>
274 </my-peertube-checkbox>
271 </div> 275 </div>
272 276
273 <div class="form-group" formGroupName="torrent"> 277 <div class="form-group" formGroupName="torrent">
274 <my-peertube-checkbox 278 <my-peertube-checkbox
275 inputName="importVideosTorrentEnabled" formControlName="enabled" 279 inputName="importVideosTorrentEnabled" formControlName="enabled"
276 i18n-labelText labelText="Allow import with a torrent file or a magnet URI" 280 i18n-labelText labelText="Allow import with a torrent file or a magnet URI"
277 ></my-peertube-checkbox> 281 >
282 <ng-container ngProjectAs="description">
283 <span i18n>⚠️ We don't recommend to enable this feature if you don't trust your users</span>
284 </ng-container>
285 </my-peertube-checkbox>
278 </div> 286 </div>
279 287
280 </ng-container> 288 </ng-container>
diff --git a/client/src/app/+admin/follows/follows.routes.ts b/client/src/app/+admin/follows/follows.routes.ts
index 1825ce278..718493dc7 100644
--- a/client/src/app/+admin/follows/follows.routes.ts
+++ b/client/src/app/+admin/follows/follows.routes.ts
@@ -42,7 +42,12 @@ export const FollowsRoutes: Routes = [
42 }, 42 },
43 { 43 {
44 path: 'video-redundancies-list', 44 path: 'video-redundancies-list',
45 component: VideoRedundanciesListComponent 45 component: VideoRedundanciesListComponent,
46 data: {
47 meta: {
48 title: $localize`Redundancy`
49 }
50 }
46 } 51 }
47 ] 52 ]
48 } 53 }