ActivityPub-federated video streaming platform using P2P directly in your web browser
Add more hints regarding live port
Chocobozzz4f20856ed4d7
diff --git a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.htmlindex af8a4e18dd..013784c6c5 100644--- a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html+++ b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html@@ -889,8 +889,9 @@<ng-container i18n>Allow live streaming</ng-container></ng-template>- <ng-container ngProjectAs="description" i18n>- ⚠️ Enabling live streaming requires trust in your users and extra moderation work+ <ng-container ngProjectAs="description">+ <div i18n>⚠️ Enabling live streaming requires trust in your users and extra moderation work</div>+ <div i18n>If enabled, your server needs to accept incoming TCP traffic on port {{ liveRTMPPort }}</div></ng-container><ng-container ngProjectAs="extra">diff --git a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.tsindex c3a833843b..f74229af01 100644--- a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts+++ b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts@@ -119,6 +119,10 @@ export class EditCustomConfigComponent extends FormReactive implements OnInit, A.map(t => t.name)}+ get liveRTMPPort () {+ return this.serverConfig.live.rtmp.port+ }+getTotalTranscodingThreads () {const transcodingEnabled = this.form.value['transcoding']['enabled']const transcodingThreads = this.form.value['transcoding']['threads']diff --git a/client/src/app/core/server/server.service.ts b/client/src/app/core/server/server.service.tsindex 1abf87118f..b1d8fcf833 100644--- a/client/src/app/core/server/server.service.ts+++ b/client/src/app/core/server/server.service.ts@@ -83,6 +83,9 @@ export class ServerService {transcoding: {enabled: false,enabledResolutions: []+ },+ rtmp: {+ port: 1935}},avatar: {diff --git a/config/default.yaml b/config/default.yamlindex 9d428f764f..01e5c8480c 100644--- a/config/default.yaml+++ b/config/default.yaml@@ -264,6 +264,7 @@ live:# /!\ transcoding.enabled (and not live.transcoding.enabled) has to be true to create a replayallow_replay: false+ # Your firewall should accept traffic from this port in TCP if you enable livertmp:port: 1935diff --git a/config/production.yaml.example b/config/production.yaml.exampleindex bcf727d825..a5cdedf35e 100644--- a/config/production.yaml.example+++ b/config/production.yaml.example@@ -278,6 +278,7 @@ live:# /!\ transcoding.enabled (and not live.transcoding.enabled) has to be true to create a replayallow_replay: true+ # Your firewall should accept traffic from this port in TCP if you enable livertmp:port: 1935diff --git a/server/controllers/api/config.ts b/server/controllers/api/config.tsindex eb9f5f4b47..2401e2ff42 100644--- a/server/controllers/api/config.ts+++ b/server/controllers/api/config.ts@@ -126,6 +126,10 @@ async function getConfig (req: express.Request, res: express.Response) {transcoding: {enabled: CONFIG.LIVE.TRANSCODING.ENABLED,enabledResolutions: getEnabledResolutions('live')+ },++ rtmp: {+ port: CONFIG.LIVE.RTMP.PORT}},import: {diff --git a/shared/models/server/server-config.model.ts b/shared/models/server/server-config.model.tsindex a01fcbe418..2dcf98f4f3 100644--- a/shared/models/server/server-config.model.ts+++ b/shared/models/server/server-config.model.ts@@ -111,6 +111,10 @@ export interface ServerConfig {enabledResolutions: number[]}++ rtmp: {+ port: number+ }}import: {