aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--client/src/app/+admin/moderation/video-comment-list/video-comment-list.component.scss2
-rw-r--r--client/src/app/+videos/+video-edit/shared/video-edit.component.html9
-rw-r--r--server/controllers/client.ts1
-rw-r--r--server/tests/api/live/live.ts1
-rw-r--r--server/tests/api/videos/video-comments.ts6
-rw-r--r--server/tests/api/videos/video-playlists.ts4
-rw-r--r--support/doc/docker-traefik.md4
-rw-r--r--support/nginx/peertube10
8 files changed, 29 insertions, 8 deletions
diff --git a/client/src/app/+admin/moderation/video-comment-list/video-comment-list.component.scss b/client/src/app/+admin/moderation/video-comment-list/video-comment-list.component.scss
index b3746b0c5..439835899 100644
--- a/client/src/app/+admin/moderation/video-comment-list/video-comment-list.component.scss
+++ b/client/src/app/+admin/moderation/video-comment-list/video-comment-list.component.scss
@@ -15,7 +15,7 @@ h1 {
15} 15}
16 16
17my-global-icon { 17my-global-icon {
18 width: 24px; 18 width: 24px;
19 height: 24px; 19 height: 24px;
20} 20}
21 21
diff --git a/client/src/app/+videos/+video-edit/shared/video-edit.component.html b/client/src/app/+videos/+video-edit/shared/video-edit.component.html
index 705d6e71a..3a24c4136 100644
--- a/client/src/app/+videos/+video-edit/shared/video-edit.component.html
+++ b/client/src/app/+videos/+video-edit/shared/video-edit.component.html
@@ -72,6 +72,15 @@
72 72
73 <div class="form-group"> 73 <div class="form-group">
74 <label i18n for="licence">Licence</label> 74 <label i18n for="licence">Licence</label>
75
76 <my-help>
77 <ng-template ptTemplate="customHtml">
78 <ng-container i18n>
79 <a href="https://chooser-beta.creativecommons.org/" target="_blank" rel="noopener noreferrer">Choose</a> the appropriate license for your work.
80 </ng-container>
81 </ng-template>
82 </my-help>
83
75 <my-select-options 84 <my-select-options
76 labelForId="licence" [items]="videoLicences" formControlName="licence" [clearable]="true" 85 labelForId="licence" [items]="videoLicences" formControlName="licence" [clearable]="true"
77 ></my-select-options> 86 ></my-select-options>
diff --git a/server/controllers/client.ts b/server/controllers/client.ts
index 335a0e082..592233676 100644
--- a/server/controllers/client.ts
+++ b/server/controllers/client.ts
@@ -64,6 +64,7 @@ for (const staticClientFile of staticClientFiles) {
64clientsRouter.get('/manifest.webmanifest', asyncMiddleware(generateManifest)) 64clientsRouter.get('/manifest.webmanifest', asyncMiddleware(generateManifest))
65 65
66// Static client overrides 66// Static client overrides
67// Must be consistent with static client overrides redirections in /support/nginx/peertube
67const staticClientOverrides = [ 68const staticClientOverrides = [
68 'assets/images/logo.svg', 69 'assets/images/logo.svg',
69 'assets/images/favicon.png', 70 'assets/images/favicon.png',
diff --git a/server/tests/api/live/live.ts b/server/tests/api/live/live.ts
index aa2e1318a..94c966c9f 100644
--- a/server/tests/api/live/live.ts
+++ b/server/tests/api/live/live.ts
@@ -10,7 +10,6 @@ import {
10 checkLiveCleanup, 10 checkLiveCleanup,
11 checkLiveSegmentHash, 11 checkLiveSegmentHash,
12 checkResolutionsInMasterPlaylist, 12 checkResolutionsInMasterPlaylist,
13 checkSegmentHash,
14 cleanupTests, 13 cleanupTests,
15 createLive, 14 createLive,
16 doubleFollow, 15 doubleFollow,
diff --git a/server/tests/api/videos/video-comments.ts b/server/tests/api/videos/video-comments.ts
index 18a86bead..141a80690 100644
--- a/server/tests/api/videos/video-comments.ts
+++ b/server/tests/api/videos/video-comments.ts
@@ -1,8 +1,8 @@
1/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ 1/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
2 2
3import * as chai from 'chai'
4import 'mocha' 3import 'mocha'
5import { VideoComment, VideoCommentAdmin, VideoCommentThreadTree } from '../../../../shared/models/videos/video-comment.model' 4import * as chai from 'chai'
5
6import { cleanupTests, testImage } from '../../../../shared/extra-utils' 6import { cleanupTests, testImage } from '../../../../shared/extra-utils'
7import { 7import {
8 createUser, 8 createUser,
@@ -22,7 +22,7 @@ import {
22 getVideoCommentThreads, 22 getVideoCommentThreads,
23 getVideoThreadComments 23 getVideoThreadComments
24} from '../../../../shared/extra-utils/videos/video-comments' 24} from '../../../../shared/extra-utils/videos/video-comments'
25import { isLocalLiveVideoAccepted } from '@server/lib/moderation' 25import { VideoComment, VideoCommentAdmin, VideoCommentThreadTree } from '../../../../shared/models/videos/video-comment.model'
26 26
27const expect = chai.expect 27const expect = chai.expect
28 28
diff --git a/server/tests/api/videos/video-playlists.ts b/server/tests/api/videos/video-playlists.ts
index 0bfb5bcd4..b194665ba 100644
--- a/server/tests/api/videos/video-playlists.ts
+++ b/server/tests/api/videos/video-playlists.ts
@@ -628,7 +628,7 @@ describe('Test video playlists', function () {
628 let video3: string 628 let video3: string
629 629
630 before(async function () { 630 before(async function () {
631 this.timeout(30000) 631 this.timeout(60000)
632 632
633 groupUser1 = [ Object.assign({}, servers[0], { accessToken: userAccessTokenServer1 }) ] 633 groupUser1 = [ Object.assign({}, servers[0], { accessToken: userAccessTokenServer1 }) ]
634 groupWithoutToken1 = [ Object.assign({}, servers[0], { accessToken: undefined }) ] 634 groupWithoutToken1 = [ Object.assign({}, servers[0], { accessToken: undefined }) ]
@@ -656,6 +656,8 @@ describe('Test video playlists', function () {
656 video2 = (await uploadVideoAndGetId({ server: servers[1], videoName: 'video 90' })).uuid 656 video2 = (await uploadVideoAndGetId({ server: servers[1], videoName: 'video 90' })).uuid
657 video3 = (await uploadVideoAndGetId({ server: servers[0], videoName: 'video 91', nsfw: true })).uuid 657 video3 = (await uploadVideoAndGetId({ server: servers[0], videoName: 'video 91', nsfw: true })).uuid
658 658
659 await waitJobs(servers)
660
659 await addVideo({ videoId: video1, startTimestamp: 15, stopTimestamp: 28 }) 661 await addVideo({ videoId: video1, startTimestamp: 15, stopTimestamp: 28 })
660 await addVideo({ videoId: video2, startTimestamp: 35 }) 662 await addVideo({ videoId: video2, startTimestamp: 35 })
661 await addVideo({ videoId: video3 }) 663 await addVideo({ videoId: video3 })
diff --git a/support/doc/docker-traefik.md b/support/doc/docker-traefik.md
index eb480ec53..4c03cce42 100644
--- a/support/doc/docker-traefik.md
+++ b/support/doc/docker-traefik.md
@@ -24,7 +24,7 @@ touch ./docker-volume/traefik/acme.json
24``` 24```
25Needs to have file mode 600: 25Needs to have file mode 600:
26```shell 26```shell
27chmod 600 ./docker-volume/traefik/acme.json 27chmod 600 ./docker-volume/traefik/acme.json
28``` 28```
29 29
30#### Update the reverse proxy configuration 30#### Update the reverse proxy configuration
@@ -40,5 +40,5 @@ More at: https://docs.traefik.io/v1.7
40#### Run with traefik 40#### Run with traefik
41 41
42```shell 42```shell
43docker-compose -f docker-compose.yml docker-compose.traefik.yml up -d 43docker-compose -f docker-compose.yml -f docker-compose.traefik.yml up -d
44``` 44```
diff --git a/support/nginx/peertube b/support/nginx/peertube
index 7f2c0f263..e58659030 100644
--- a/support/nginx/peertube
+++ b/support/nginx/peertube
@@ -58,6 +58,16 @@ server {
58 } 58 }
59 59
60 # Bypass PeerTube for performance reasons. Could be removed 60 # Bypass PeerTube for performance reasons. Could be removed
61 # Should be consistent with client-overrides assets list in /server/controllers/client.ts
62 location ~ ^/client/(assets/images/(icons/icon-36x36\.png|icons/icon-48x48\.png|icons/icon-72x72\.png|icons/icon-96x96\.png|icons/icon-144x144\.png|icons/icon-192x192\.png|icons/icon-512x512\.png|logo\.svg|favicon\.png))$ {
63 add_header Cache-Control "public, max-age=31536000, immutable";
64
65 root /var/www/peertube/storage/client-overrides;
66
67 try_files /$1 $uri;
68 }
69
70 # Bypass PeerTube for performance reasons. Could be removed
61 location ~ ^/client/(.*\.(js|css|png|svg|woff2|otf|ttf|woff|eot))$ { 71 location ~ ^/client/(.*\.(js|css|png|svg|woff2|otf|ttf|woff|eot))$ {
62 add_header Cache-Control "public, max-age=31536000, immutable"; 72 add_header Cache-Control "public, max-age=31536000, immutable";
63 73