aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-09-25 16:19:35 +0200
committerChocobozzz <chocobozzz@cpy.re>2020-11-09 15:33:04 +0100
commitfb7194043d0486ce0a6a40b2ffbdf32878c33a6f (patch)
tree6ed304a5d730a75da0a4460b3009df88684fa598 /shared
parenta5cf76afa378aae81af2a9b0ce548e5d2582f832 (diff)
downloadPeerTube-fb7194043d0486ce0a6a40b2ffbdf32878c33a6f.tar.gz
PeerTube-fb7194043d0486ce0a6a40b2ffbdf32878c33a6f.tar.zst
PeerTube-fb7194043d0486ce0a6a40b2ffbdf32878c33a6f.zip
Check live duration and size
Diffstat (limited to 'shared')
-rw-r--r--shared/extra-utils/server/config.ts2
-rw-r--r--shared/models/server/custom-config.model.ts3
-rw-r--r--shared/models/server/server-config.model.ts3
3 files changed, 8 insertions, 0 deletions
diff --git a/shared/extra-utils/server/config.ts b/shared/extra-utils/server/config.ts
index 3606976bd..bb7e23d54 100644
--- a/shared/extra-utils/server/config.ts
+++ b/shared/extra-utils/server/config.ts
@@ -128,6 +128,8 @@ function updateCustomSubConfig (url: string, token: string, newConfig: DeepParti
128 }, 128 },
129 live: { 129 live: {
130 enabled: true, 130 enabled: true,
131 allowReplay: false,
132 maxDuration: null,
131 transcoding: { 133 transcoding: {
132 enabled: true, 134 enabled: true,
133 threads: 4, 135 threads: 4,
diff --git a/shared/models/server/custom-config.model.ts b/shared/models/server/custom-config.model.ts
index e609d1a33..11b2ef2eb 100644
--- a/shared/models/server/custom-config.model.ts
+++ b/shared/models/server/custom-config.model.ts
@@ -98,6 +98,9 @@ export interface CustomConfig {
98 live: { 98 live: {
99 enabled: boolean 99 enabled: boolean
100 100
101 allowReplay: boolean
102 maxDuration: number
103
101 transcoding: { 104 transcoding: {
102 enabled: boolean 105 enabled: boolean
103 threads: number 106 threads: number
diff --git a/shared/models/server/server-config.model.ts b/shared/models/server/server-config.model.ts
index 77694a627..1563d848e 100644
--- a/shared/models/server/server-config.model.ts
+++ b/shared/models/server/server-config.model.ts
@@ -101,6 +101,9 @@ export interface ServerConfig {
101 live: { 101 live: {
102 enabled: boolean 102 enabled: boolean
103 103
104 maxDuration: number
105 allowReplay: boolean
106
104 transcoding: { 107 transcoding: {
105 enabled: boolean 108 enabled: boolean
106 109