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

Password auth not working #519

Open
NikoQT opened this issue Sep 26, 2024 · 7 comments
Open

Password auth not working #519

NikoQT opened this issue Sep 26, 2024 · 7 comments

Comments

@NikoQT
Copy link

NikoQT commented Sep 26, 2024

I tryed to configure an auth to enter the instance by using YTDL_OPTIONS_FILE but I could get it to work

Does anyone know how to configure it?

my json file:

{
"user": "",
"password": "
",
"videopassword:": "***",
"geo_bypass": true
}

@PikuZheng
Copy link
Contributor

username and password maybe?
https://github.com/yt-dlp/yt-dlp/blob/eabb4680fdb09ba1f48d174a700a2e3b43f82add/yt_dlp/YoutubeDL.py#L216-L218

@jlar0che
Copy link

jlar0che commented Oct 10, 2024

I also can't get this working. I tried it with YTDL_OPTIONS passed as an environment variable in my docker-compose.

Example:

version: "3.9"
services:
  metube:
    container_name: MeTube
    image: ghcr.io/alexta69/metube
    healthcheck:
     test: curl -f http://localhost:8081/ || exit 1
    mem_limit: 6g
    cpu_shares: 768
    security_opt:
      - no-new-privileges:true
    restart: on-failure:5
    ports:
      - 5697:8081
    volumes:
      - /volume1/docker/metube/downloads:/downloads:rw
    environment:
      UID: 1111
      GID: 111
      YTDL_OPTIONS: '{"username":"username-here","password":"super-secret-redacted-password"}'

@NikoQT
Copy link
Author

NikoQT commented Oct 10, 2024

I also can't get this working. I tried it with YTDL_OPTIONS passed as an environment variable in my docker-compose.

Example:

version: "3.9"
services:
  metube:
    container_name: MeTube
    image: ghcr.io/alexta69/metube
    healthcheck:
     test: curl -f http://localhost:8081/ || exit 1
    mem_limit: 6g
    cpu_shares: 768
    security_opt:
      - no-new-privileges:true
    restart: on-failure:5
    ports:
      - 5697:8081
    volumes:
      - /volume1/docker/metube/downloads:/downloads:rw
    environment:
      UID: 1111
      GID: 111
      YTDL_OPTIONS: '{"username":"username-here","password":"super-secret-redacted-password"}'

In the end I used a nginx reverse proxy with htaccess and it does its job

@jlar0che
Copy link

I tried that but never got it to work properly. Could you share your (sanitized) docker-compose for the nginx reverse proxy?

@jlar0che
Copy link

Nevermind. Got it up and running wonderfully. Even made a nice customized 401 error page :)

@NikoQT
Copy link
Author

NikoQT commented Oct 11, 2024

Nevermind. Got it up and running wonderfully. Even made a nice customized 401 error page :)

nice :)

@Betonhaus
Copy link

Nevermind. Got it up and running wonderfully. Even made a nice customized 401 error page :)

can you share how you did it? I'd like to password protect my metube app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants