mirror of
				https://github.com/owncast/owncast.git
				synced 2025-11-01 02:44:31 +08:00 
			
		
		
		
	Add stream key to config admin api
This commit is contained in:
		| @ -12,6 +12,7 @@ func GetServerConfig(w http.ResponseWriter, r *http.Request) { | ||||
| 	response := serverConfigAdminResponse{ | ||||
| 		InstanceDetails: config.Config.InstanceDetails, | ||||
| 		FFmpegPath:      config.Config.GetFFMpegPath(), | ||||
| 		StreamKey:       config.Config.VideoSettings.StreamingKey, | ||||
| 		WebServerPort:   config.Config.GetPublicWebServerPort(), | ||||
| 		VideoSettings: videoSettings{ | ||||
| 			VideoQualityVariants:  config.Config.GetVideoStreamQualities(), | ||||
| @ -29,6 +30,7 @@ func GetServerConfig(w http.ResponseWriter, r *http.Request) { | ||||
| type serverConfigAdminResponse struct { | ||||
| 	InstanceDetails config.InstanceDetails `json:"instanceDetails"` | ||||
| 	FFmpegPath      string                 `json:"ffmpegPath"` | ||||
| 	StreamKey       string                 `json:"streamKey"` | ||||
| 	WebServerPort   int                    `json:"webServerPort"` | ||||
| 	S3              config.S3              `json:"s3"` | ||||
| 	VideoSettings   videoSettings          `json:"videoSettings"` | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Gabe Kangas
					Gabe Kangas