ganymede icon indicating copy to clipboard operation
ganymede copied to clipboard

[Feature Request] Only logged in users can see the VODs

Open szotyo-sys opened this issue 2 years ago • 3 comments

Idea: If the user is not logged in, they can't see nothing in the webpage except the login form.

Problem: I'm running the service exposed to the internet with reverse proxy and don't want to generate a large amount of traffic from unknown users streaming these vods.

My Solution: In an "alternative" solution I was thinking to use Nginx proxy managers basic auth to restrict the page, but I don't know if this would affect the ganymede-api or ganymede-nginx.

Thanks for your reply.

szotyo-sys avatar Feb 22 '23 23:02 szotyo-sys

Hi, The frontend container has an optional environment variable REQUIRE_LOGIN that if set to true will require users to be authenticated to view videos. More information can be found in the release notes that introduced this feature.

Does this help?

Zibbp avatar Feb 22 '23 23:02 Zibbp

Yes, that's awesome thanks, furthermore this existing feature could get some upgrade or maybe via introducing a new optional variable to hide the complete "Recently Archived, Channels, Playlists" for unauthorized requests and just the login/register page is available.

szotyo-sys avatar Feb 22 '23 23:02 szotyo-sys

Hi, The frontend container has an optional environment variable REQUIRE_LOGIN that if set to true will require users to be authenticated to view videos. More information can be found in the release notes that introduced this feature.

Just a headsup that there's no additional session / security check here. You can rebuild the stream URL / .m3u8 by looking at the page source and play them in an alternative player like VLC.

MadMakz avatar Jun 19 '23 18:06 MadMakz