|
|
@ -46,12 +46,13 @@ func GetServerConfig(w http.ResponseWriter, r *http.Request) { |
|
|
|
NSFW: data.GetNSFW(), |
|
|
|
NSFW: data.GetNSFW(), |
|
|
|
CustomStyles: data.GetCustomStyles(), |
|
|
|
CustomStyles: data.GetCustomStyles(), |
|
|
|
}, |
|
|
|
}, |
|
|
|
FFmpegPath: ffmpeg, |
|
|
|
FFmpegPath: ffmpeg, |
|
|
|
StreamKey: data.GetStreamKey(), |
|
|
|
StreamKey: data.GetStreamKey(), |
|
|
|
WebServerPort: config.WebServerPort, |
|
|
|
WebServerPort: config.WebServerPort, |
|
|
|
WebServerIP: config.WebServerIP, |
|
|
|
WebServerIP: config.WebServerIP, |
|
|
|
RTMPServerPort: data.GetRTMPPortNumber(), |
|
|
|
RTMPServerPort: data.GetRTMPPortNumber(), |
|
|
|
ChatDisabled: data.GetChatDisabled(), |
|
|
|
ChatDisabled: data.GetChatDisabled(), |
|
|
|
|
|
|
|
ChatJoinMessagesEnabled: data.GetChatJoinMessagesEnabled(), |
|
|
|
VideoSettings: videoSettings{ |
|
|
|
VideoSettings: videoSettings{ |
|
|
|
VideoQualityVariants: videoQualityVariants, |
|
|
|
VideoQualityVariants: videoQualityVariants, |
|
|
|
LatencyLevel: data.GetStreamLatencyLevel().Level, |
|
|
|
LatencyLevel: data.GetStreamLatencyLevel().Level, |
|
|
@ -85,22 +86,23 @@ func GetServerConfig(w http.ResponseWriter, r *http.Request) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
type serverConfigAdminResponse struct { |
|
|
|
type serverConfigAdminResponse struct { |
|
|
|
InstanceDetails webConfigResponse `json:"instanceDetails"` |
|
|
|
InstanceDetails webConfigResponse `json:"instanceDetails"` |
|
|
|
FFmpegPath string `json:"ffmpegPath"` |
|
|
|
FFmpegPath string `json:"ffmpegPath"` |
|
|
|
StreamKey string `json:"streamKey"` |
|
|
|
StreamKey string `json:"streamKey"` |
|
|
|
WebServerPort int `json:"webServerPort"` |
|
|
|
WebServerPort int `json:"webServerPort"` |
|
|
|
WebServerIP string `json:"webServerIP"` |
|
|
|
WebServerIP string `json:"webServerIP"` |
|
|
|
RTMPServerPort int `json:"rtmpServerPort"` |
|
|
|
RTMPServerPort int `json:"rtmpServerPort"` |
|
|
|
S3 models.S3 `json:"s3"` |
|
|
|
S3 models.S3 `json:"s3"` |
|
|
|
VideoSettings videoSettings `json:"videoSettings"` |
|
|
|
VideoSettings videoSettings `json:"videoSettings"` |
|
|
|
YP yp `json:"yp"` |
|
|
|
YP yp `json:"yp"` |
|
|
|
ChatDisabled bool `json:"chatDisabled"` |
|
|
|
ChatDisabled bool `json:"chatDisabled"` |
|
|
|
ExternalActions []models.ExternalAction `json:"externalActions"` |
|
|
|
ChatJoinMessagesEnabled bool `json:"chatJoinMessagesEnabled"` |
|
|
|
SupportedCodecs []string `json:"supportedCodecs"` |
|
|
|
ExternalActions []models.ExternalAction `json:"externalActions"` |
|
|
|
VideoCodec string `json:"videoCodec"` |
|
|
|
SupportedCodecs []string `json:"supportedCodecs"` |
|
|
|
ForbiddenUsernames []string `json:"forbiddenUsernames"` |
|
|
|
VideoCodec string `json:"videoCodec"` |
|
|
|
Federation federationConfigResponse `json:"federation"` |
|
|
|
ForbiddenUsernames []string `json:"forbiddenUsernames"` |
|
|
|
SuggestedUsernames []string `json:"suggestedUsernames"` |
|
|
|
Federation federationConfigResponse `json:"federation"` |
|
|
|
|
|
|
|
SuggestedUsernames []string `json:"suggestedUsernames"` |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
type videoSettings struct { |
|
|
|
type videoSettings struct { |
|
|
|