Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

I thought I already fixed this. Guess it got lost in a merge.

Gabe Kangase813141b03b6
diff --git a/router/middleware/auth.go b/router/middleware/auth.go
index a3298a0b6b..f462db3660 100644
--- a/router/middleware/auth.go
+++ b/router/middleware/auth.go
@@ -11,11 +11,11 @@ import (
// RequireAdminAuth wraps a handler requiring HTTP basic auth for it using the given
// the stream key as the password and and a hardcoded "admin" for username.
func RequireAdminAuth(handler http.HandlerFunc) http.HandlerFunc {
- username := "admin"
- password := config.Config.VideoSettings.StreamingKey
- realm := "Owncast Authenticated Request"
-
return func(w http.ResponseWriter, r *http.Request) {
+ username := "admin"
+ password := config.Config.VideoSettings.StreamingKey
+ realm := "Owncast Authenticated Request"
+
// The following line is kind of a work around.
// If you want HTTP Basic Auth + Cors it requires _explicit_ origins to be provided in the
// Access-Control-Allow-Origin header. So we just pull out the origin header and specify it.