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

Add all missing config as Docker env #6591

Open
kodxana opened this issue Sep 18, 2024 · 6 comments
Open

Add all missing config as Docker env #6591

kodxana opened this issue Sep 18, 2024 · 6 comments
Labels
Component: Docker 🐳 Deals with containerisation, a hellish nightmare for Chocobos Type: Feature Request ✨

Comments

@kodxana
Copy link

kodxana commented Sep 18, 2024

Describe the current behavior

So I have updated my docker instalation to v6.3.0 to use new yt-dl proxy option though after upgrade I cant see option from web ui or in config files.
Other UI elements from update like transcript shows fine.

Are there any docs on how to set proxy corectly?

Steps to reproduce

  1. docker compose down -v
  2. docker compose pull
  3. docker compose up -d
  4. No option to provide proxy

Describe the expected behavior

There it should be indication how to set proxy corectly.

Additional information

  • PeerTube instance:

    • URL: peer.madiator.cloud
    • Version: v6.3.0
    • NodeJS version:
    • Ffmpeg version:
  • Browser name, version and platforms on which you could reproduce the bug:

  • Link to browser console log if relevant:

  • Link to server log if relevant (journalctl or /var/www/peertube/storage/logs/):

@Chocobozzz Chocobozzz changed the title Missing YT-DL Proxy in Docker setup Add all missing config as Docker env Sep 18, 2024
@Chocobozzz Chocobozzz added Type: Feature Request ✨ Component: Docker 🐳 Deals with containerisation, a hellish nightmare for Chocobos labels Sep 18, 2024
@Chocobozzz
Copy link
Owner

Chocobozzz commented Sep 18, 2024

Hi,

Put a production.yaml in your docker-volume/config directory that contains key you want (like https://github.com/Chocobozzz/PeerTube/blob/develop/config/production.yaml.example#L835). So for example:

import:
  videos:
    http:
      proxies:
        - "https://username:password@example.com:8888"

@kodxana
Copy link
Author

kodxana commented Sep 18, 2024

Do I need to put whole production.yaml or can be just that fragment. I already have local-production.json in that folder.

@kodxana
Copy link
Author

kodxana commented Sep 18, 2024

Ok I think it works now but docker image is missing some deps for https proxy to work.

ERROR: To use an HTTPS proxy for this request, one of the following dependencies needs to be installed: requests, curl_cffi

@Chocobozzz
Copy link
Owner

Do I need to put whole production.yaml

No, only the key you need.

Ok I think it works now but docker image is missing some deps for https proxy to work.

Try to use a youtube-dl binary that contains these dependencies: https://github.com/Chocobozzz/PeerTube/blob/develop/config/production.yaml.example#L815

@kodxana
Copy link
Author

kodxana commented Sep 18, 2024

Nice it works now after switched proxy to http all works fine and can import videos now :)

@kodxana kodxana closed this as completed Sep 18, 2024
@Chocobozzz
Copy link
Owner

Reopening this issue because I changed its scope so we properly implement all PeerTube config as Docker env

I also added a note in the configuration file: e03dfa6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Docker 🐳 Deals with containerisation, a hellish nightmare for Chocobos Type: Feature Request ✨
Projects
None yet
Development

No branches or pull requests

2 participants