Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

domain restriction #2980

Closed
sirfpsycho opened this issue Mar 23, 2022 · 1 comment
Closed

domain restriction #2980

sirfpsycho opened this issue Mar 23, 2022 · 1 comment
Assignees
Labels
Discussion Discussion or questions. EnglishNative This issue is conveyed exclusively in English. Won't fix We won't fix it.

Comments

@sirfpsycho
Copy link

sirfpsycho commented Mar 23, 2022

I am referring from https://stackoverflow.com/questions/71112928/nginx-rtmp-video-is-out-of-sync/71273264

I have installed srs successfully and yes there is no sync issue. But Now I want to restrict access of live stream with only my domain. In nginx-rtmp it was very easy to add CORS setup valid_referers blocked mydomain.com; Is there any method so that stream can only be played on my domain only?

Additionally, how can I set atc on ? Can you please tell me the path of exact file in which I can edit and set atc on?

@winlinvip
Copy link
Member

winlinvip commented Apr 29, 2022

If you have fixed the no sync issue, you don't have to set the atc on, it's an optional config, not required.

If you want to set CORS, you could use NGINX to proxy to SRS, and set the CORS in NGINX as you wish.

For detail about nginx proxy, please read #2881

@winlinvip winlinvip self-assigned this Apr 29, 2022
@winlinvip winlinvip added Discussion Discussion or questions. Won't fix We won't fix it. labels Apr 29, 2022
@winlinvip winlinvip added the EnglishNative This issue is conveyed exclusively in English. label Jul 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Discussion Discussion or questions. EnglishNative This issue is conveyed exclusively in English. Won't fix We won't fix it.
Projects
None yet
Development

No branches or pull requests

2 participants