Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nzws committed May 13, 2024
1 parent c354945 commit 7543f28
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions apps/push-serverless/vm/knzk/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
}

handle /streaming/* {
header Access-Control-Allow-Origin *
header Access-Control-Allow-Methods *

reverse_proxy http://localhost:8080
}

Expand Down
2 changes: 1 addition & 1 deletion apps/server/src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const baseVideoPlay = `${PROTOCOL}://${
}`;
export const frontendUrl = process.env.FRONTEND_ENDPOINT || '';
export const getPushUrl = () =>
`rtmp://${(process.env.PUSH_DOMAIN || '').split(':')[0]}/live`;
`rtmps://${(process.env.PUSH_DOMAIN || '').split(':')[0]}:1936/live`;
export const getPushStreamKey = (
liveId: number,
pushToken: string,
Expand Down

0 comments on commit 7543f28

Please sign in to comment.