aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-09-05 09:43:35 +0200
committerChocobozzz <chocobozzz@cpy.re>2019-09-05 10:17:02 +0200
commitbe04c6fdab5d91a7a57fa3ff36cde22a549c29da (patch)
treeb273cfb4cf3d0b73b12a1b9bb25884851255fc7e /shared
parent592c735c19b25e9b38f82d90d15a81307902ed62 (diff)
downloadPeerTube-be04c6fdab5d91a7a57fa3ff36cde22a549c29da.tar.gz
PeerTube-be04c6fdab5d91a7a57fa3ff36cde22a549c29da.tar.zst
PeerTube-be04c6fdab5d91a7a57fa3ff36cde22a549c29da.zip
Add hardware information in instance config
Diffstat (limited to 'shared')
-rw-r--r--shared/extra-utils/server/config.ts1
-rw-r--r--shared/models/server/about.model.ts1
-rw-r--r--shared/models/server/custom-config.model.ts1
3 files changed, 3 insertions, 0 deletions
diff --git a/shared/extra-utils/server/config.ts b/shared/extra-utils/server/config.ts
index 66e0a008e..578dd35cf 100644
--- a/shared/extra-utils/server/config.ts
+++ b/shared/extra-utils/server/config.ts
@@ -60,6 +60,7 @@ function updateCustomSubConfig (url: string, token: string, newConfig: DeepParti
60 administrator: 'Kuja', 60 administrator: 'Kuja',
61 maintenanceLifetime: 'forever', 61 maintenanceLifetime: 'forever',
62 businessModel: 'my super business model', 62 businessModel: 'my super business model',
63 hardwareInformation: '2vCore 3GB RAM',
63 64
64 languages: [ 'en', 'es' ], 65 languages: [ 'en', 'es' ],
65 categories: [ 1, 2 ], 66 categories: [ 1, 2 ],
diff --git a/shared/models/server/about.model.ts b/shared/models/server/about.model.ts
index bde4e0b50..6d4ba63c4 100644
--- a/shared/models/server/about.model.ts
+++ b/shared/models/server/about.model.ts
@@ -6,6 +6,7 @@ export interface About {
6 terms: string 6 terms: string
7 7
8 codeOfConduct: string 8 codeOfConduct: string
9 hardwareInformation: string
9 10
10 creationReason: string 11 creationReason: string
11 moderationInformation: string 12 moderationInformation: string
diff --git a/shared/models/server/custom-config.model.ts b/shared/models/server/custom-config.model.ts
index a7c2a3bab..c9957f825 100644
--- a/shared/models/server/custom-config.model.ts
+++ b/shared/models/server/custom-config.model.ts
@@ -13,6 +13,7 @@ export interface CustomConfig {
13 administrator: string 13 administrator: string
14 maintenanceLifetime: string 14 maintenanceLifetime: string
15 businessModel: string 15 businessModel: string
16 hardwareInformation: string
16 17
17 languages: string[] 18 languages: string[]
18 categories: number[] 19 categories: number[]