Skip to content

Commit

Permalink
Proxy with api instead of config
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasodonnell committed Aug 14, 2023
1 parent a00b2b8 commit 3fd57f1
Show file tree
Hide file tree
Showing 12 changed files with 3,280 additions and 206 deletions.
Binary file added assets/open-graph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 0 additions & 16 deletions docker-compose.override.ymlABC

This file was deleted.

15 changes: 5 additions & 10 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,18 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
async rewrites() {
const { RS_URL } = process.env

if (!RS_URL) {
return []
}

return [
{
destination: `${RS_URL}/hls/live.stream.m3u8`,
source: '/live.m3u8',
destination: `/api/live`,
source: `/live.m3u8`,
},
{
destination: `${RS_URL}/hls/:segment`,
source: '/:segment(\.\+\.ts)',
destination: `/api/segment`,
source: '/live.stream-(\.\*).ts',
},
]
},

swcMinify: false,
}

Expand Down
Loading

0 comments on commit 3fd57f1

Please sign in to comment.