metube icon indicating copy to clipboard operation
metube copied to clipboard

Password auth not working

Open NikoQT opened this issue 1 year ago • 6 comments
trafficstars

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 }

NikoQT avatar Sep 26 '24 20:09 NikoQT

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

PikuZheng avatar Sep 27 '24 02:09 PikuZheng

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"}'

jlar0che avatar Oct 10 '24 15:10 jlar0che

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

NikoQT avatar Oct 10 '24 17:10 NikoQT

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

jlar0che avatar Oct 11 '24 15:10 jlar0che

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

jlar0che avatar Oct 11 '24 20:10 jlar0che

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

nice :)

NikoQT avatar Oct 11 '24 20:10 NikoQT

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.

ghost avatar Nov 02 '24 07:11 ghost

@jlar0che do you mind sharing how you got it to work.

WaelEmam avatar Apr 05 '25 19:04 WaelEmam