Best way to minimize proxy use with custom instance? #840

Open
opened 2025-11-09 09:59:35 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @TheK098 on GitHub (May 29, 2025).

problem description

Hey, I'm running Cobalt API instance with the yt session generator on a VPS, but youtube downloads fail with a "login required" error.

Fortunately, with a residential proxy it works, but it's quite expensive.

Is there a way to use the proxy only for fetching links, not for the actual downloads?

Would appreciate any advice here!

your instance configuration

services:
    cobalt-api:
        image: ghcr.io/imputnet/cobalt:10

        init: true
        read_only: true
        restart: unless-stopped
        container_name: cobalt-api

        ports:
            - 9000:9000/tcp

        environment:
            API_URL: ""
            YOUTUBE_SESSION_SERVER: "http://yt-session-generator:8080/token"
            API_EXTERNAL_PROXY: ""

        labels:
            - com.centurylinklabs.watchtower.scope=cobalt

        depends_on:
            - yt-session-generator

        networks:
            - cobalt-network

    watchtower:
        image: ghcr.io/containrrr/watchtower
        restart: unless-stopped
        command: --cleanup --scope cobalt --interval 900 --include-restarting
        volumes:
            - /var/run/docker.sock:/var/run/docker.sock

    yt-session-generator:
        image: ghcr.io/imputnet/yt-session-generator:webserver

        init: true
        restart: unless-stopped
        container_name: yt-session-generator

        labels:
          - com.centurylinklabs.watchtower.scope=cobalt

        networks:
            - cobalt-network

networks:
    cobalt-network:
        driver: bridge
Originally created by @TheK098 on GitHub (May 29, 2025). ### problem description Hey, I'm running Cobalt API instance with the yt session generator on a VPS, but youtube downloads fail with a "login required" error. Fortunately, with a residential proxy it works, but it's quite expensive. Is there a way to use the proxy only for fetching links, not for the actual downloads? Would appreciate any advice here! ### your instance configuration ```shell services: cobalt-api: image: ghcr.io/imputnet/cobalt:10 init: true read_only: true restart: unless-stopped container_name: cobalt-api ports: - 9000:9000/tcp environment: API_URL: "" YOUTUBE_SESSION_SERVER: "http://yt-session-generator:8080/token" API_EXTERNAL_PROXY: "" labels: - com.centurylinklabs.watchtower.scope=cobalt depends_on: - yt-session-generator networks: - cobalt-network watchtower: image: ghcr.io/containrrr/watchtower restart: unless-stopped command: --cleanup --scope cobalt --interval 900 --include-restarting volumes: - /var/run/docker.sock:/var/run/docker.sock yt-session-generator: image: ghcr.io/imputnet/yt-session-generator:webserver init: true restart: unless-stopped container_name: yt-session-generator labels: - com.centurylinklabs.watchtower.scope=cobalt networks: - cobalt-network networks: cobalt-network: driver: bridge ```
GiteaMirror added the instance hosting help label 2025-11-09 09:59:35 -06:00
Sign in to join this conversation.