Add more hints regarding live port
This commit is contained in:
parent
7e4e8119e1
commit
4f20856ed4
7 changed files with 20 additions and 2 deletions
|
@ -889,8 +889,9 @@
|
||||||
<ng-container i18n>Allow live streaming</ng-container>
|
<ng-container i18n>Allow live streaming</ng-container>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
|
|
||||||
<ng-container ngProjectAs="description" i18n>
|
<ng-container ngProjectAs="description">
|
||||||
⚠️ Enabling live streaming requires trust in your users and extra moderation work
|
<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>
|
||||||
|
|
||||||
<ng-container ngProjectAs="extra">
|
<ng-container ngProjectAs="extra">
|
||||||
|
|
|
@ -119,6 +119,10 @@ export class EditCustomConfigComponent extends FormReactive implements OnInit, A
|
||||||
.map(t => t.name)
|
.map(t => t.name)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get liveRTMPPort () {
|
||||||
|
return this.serverConfig.live.rtmp.port
|
||||||
|
}
|
||||||
|
|
||||||
getTotalTranscodingThreads () {
|
getTotalTranscodingThreads () {
|
||||||
const transcodingEnabled = this.form.value['transcoding']['enabled']
|
const transcodingEnabled = this.form.value['transcoding']['enabled']
|
||||||
const transcodingThreads = this.form.value['transcoding']['threads']
|
const transcodingThreads = this.form.value['transcoding']['threads']
|
||||||
|
|
|
@ -83,6 +83,9 @@ export class ServerService {
|
||||||
transcoding: {
|
transcoding: {
|
||||||
enabled: false,
|
enabled: false,
|
||||||
enabledResolutions: []
|
enabledResolutions: []
|
||||||
|
},
|
||||||
|
rtmp: {
|
||||||
|
port: 1935
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
avatar: {
|
avatar: {
|
||||||
|
|
|
@ -264,6 +264,7 @@ live:
|
||||||
# /!\ transcoding.enabled (and not live.transcoding.enabled) has to be true to create a replay
|
# /!\ transcoding.enabled (and not live.transcoding.enabled) has to be true to create a replay
|
||||||
allow_replay: false
|
allow_replay: false
|
||||||
|
|
||||||
|
# Your firewall should accept traffic from this port in TCP if you enable live
|
||||||
rtmp:
|
rtmp:
|
||||||
port: 1935
|
port: 1935
|
||||||
|
|
||||||
|
|
|
@ -278,6 +278,7 @@ live:
|
||||||
# /!\ transcoding.enabled (and not live.transcoding.enabled) has to be true to create a replay
|
# /!\ transcoding.enabled (and not live.transcoding.enabled) has to be true to create a replay
|
||||||
allow_replay: true
|
allow_replay: true
|
||||||
|
|
||||||
|
# Your firewall should accept traffic from this port in TCP if you enable live
|
||||||
rtmp:
|
rtmp:
|
||||||
port: 1935
|
port: 1935
|
||||||
|
|
||||||
|
|
|
@ -126,6 +126,10 @@ async function getConfig (req: express.Request, res: express.Response) {
|
||||||
transcoding: {
|
transcoding: {
|
||||||
enabled: CONFIG.LIVE.TRANSCODING.ENABLED,
|
enabled: CONFIG.LIVE.TRANSCODING.ENABLED,
|
||||||
enabledResolutions: getEnabledResolutions('live')
|
enabledResolutions: getEnabledResolutions('live')
|
||||||
|
},
|
||||||
|
|
||||||
|
rtmp: {
|
||||||
|
port: CONFIG.LIVE.RTMP.PORT
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
import: {
|
import: {
|
||||||
|
|
|
@ -111,6 +111,10 @@ export interface ServerConfig {
|
||||||
|
|
||||||
enabledResolutions: number[]
|
enabledResolutions: number[]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rtmp: {
|
||||||
|
port: number
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
import: {
|
import: {
|
||||||
|
|
Loading…
Reference in a new issue