Use transcoder's RoutePrefix to listen

This is probably a breaking change for downstream transcoder users
This commit is contained in:
Zoe Roux 2025-01-02 00:00:25 +01:00
parent b2255651af
commit 0e12ccd6bb
No known key found for this signature in database
4 changed files with 19 additions and 15 deletions

View File

@ -19,7 +19,8 @@ services:
build: ./back
restart: on-failure
environment:
- TRANSCODER_URL=${TRANSCODER_URL:-http://transcoder:7666}
- TRANSCODER_URL=${TRANSCODER_URL:-http://transcoder:7666/video}
- KYOO_PREFIX=/api
env_file:
- ./.env
depends_on:

View File

@ -29,7 +29,8 @@ services:
- "5000:5000"
restart: on-failure
environment:
- TRANSCODER_URL=${TRANSCODER_URL:-http://transcoder:7666}
- TRANSCODER_URL=${TRANSCODER_URL:-http://transcoder:7666/video}
- KYOO_PREFIX=/api
env_file:
- ./.env
depends_on:

View File

@ -20,7 +20,8 @@ services:
restart: unless-stopped
cpus: 1.5
environment:
- TRANSCODER_URL=${TRANSCODER_URL:-http://transcoder:7666}
- TRANSCODER_URL=${TRANSCODER_URL:-http://transcoder:7666/video}
- KYOO_PREFIX=/api
env_file:
- ./.env
depends_on:

View File

@ -308,18 +308,19 @@ func main() {
metadata: metadata,
}
e.GET("/:path/direct", DirectStream)
e.GET("/:path/direct/:identifier", DirectStream)
e.GET("/:path/master.m3u8", h.GetMaster)
e.GET("/:path/:video/:quality/index.m3u8", h.GetVideoIndex)
e.GET("/:path/audio/:audio/index.m3u8", h.GetAudioIndex)
e.GET("/:path/:video/:quality/:chunk", h.GetVideoSegment)
e.GET("/:path/audio/:audio/:chunk", h.GetAudioSegment)
e.GET("/:path/info", h.GetInfo)
e.GET("/:path/thumbnails.png", h.GetThumbnails)
e.GET("/:path/thumbnails.vtt", h.GetThumbnailsVtt)
e.GET("/:path/attachment/:name", h.GetAttachment)
e.GET("/:path/subtitle/:name", h.GetSubtitle)
g := e.Group(src.Settings.RoutePrefix)
g.GET("/:path/direct", DirectStream)
g.GET("/:path/direct/:identifier", DirectStream)
g.GET("/:path/master.m3u8", h.GetMaster)
g.GET("/:path/:video/:quality/index.m3u8", h.GetVideoIndex)
g.GET("/:path/audio/:audio/index.m3u8", h.GetAudioIndex)
g.GET("/:path/:video/:quality/:chunk", h.GetVideoSegment)
g.GET("/:path/audio/:audio/:chunk", h.GetAudioSegment)
g.GET("/:path/info", h.GetInfo)
g.GET("/:path/thumbnails.png", h.GetThumbnails)
g.GET("/:path/thumbnails.vtt", h.GetThumbnailsVtt)
g.GET("/:path/attachment/:name", h.GetAttachment)
g.GET("/:path/subtitle/:name", h.GetSubtitle)
e.Logger.Fatal(e.Start(":7666"))
}