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

[Question] Wrong Videoplayback ip / 403 #4854

Closed
r-eu9 opened this issue Aug 16, 2024 · 3 comments
Closed

[Question] Wrong Videoplayback ip / 403 #4854

r-eu9 opened this issue Aug 16, 2024 · 3 comments
Labels
question Further information is requested

Comments

@r-eu9
Copy link

r-eu9 commented Aug 16, 2024

I use the invidious docker installation behind an apache2 reverse proxy. The VM is only via IPv6 reachable from outside. But the VM can use IPv4 for outgoing traffic via NAT.
When I try to view a video it fails with 403. I assume the origin of the problem is the "ip=.." part of the /videoplayback URL. The IP is the IPv4 address of the NATing host.

The installation is with Debian 11.10 and docker 20.10.5
I use the po_token and visitor_data config entries in the docker-compose.yml:

version: "3"
services:

  invidious:
    build:
      context: .
      dockerfile: docker/Dockerfile
    restart: unless-stopped
    ports:
      - "127.0.0.1:3000:3000"
      - "::1:3000:3000"
    environment:
      # Please read the following file for a comprehensive list of all available
      # configuration options and their associated syntax:
      # https://github.com/iv-org/invidious/blob/master/config/config.example.yml
      INVIDIOUS_CONFIG: |
        db:
          dbname: invidious
          user: kemal
          password: kemal
          host: invidious-db
          port: 5432
        check_tables: true
        external_port: 443
        domain: host.example.com
        # disable_proxy: true
        https_only: true
        # force_resolve: ipv6
        # statistics_enabled: false
        hmac_key: "******"
        registration_enabled: false
        login_enabled: false
        po_token: "*******"
        visitor_data: "******"
        # locale: de
        region: DE
    healthcheck:
      test: wget -nv --tries=1 --spider http://127.0.0.1:3000/api/v1/trending || exit 1
      interval: 30s
      timeout: 5s
      retries: 2

@r-eu9 r-eu9 added the bug Something isn't working label Aug 16, 2024
@martinetd
Copy link

Had similar 403 errors, ensuring everything uses the same IP for outgoing traffic (po/vistor token obtention, inv_sig_helper and invidious) fixed it.

I don't think there's much that can be done here as it's tied to what google provides when one fetches resources..

@unixfox
Copy link
Member

unixfox commented Aug 24, 2024

@r-eu9 I don't see you running inv_sig_helper.

Make sure to follow the guide here: iv-org/documentation#581

@unixfox unixfox closed this as completed Aug 24, 2024
@unixfox unixfox changed the title [Bug] Wrong Videoplayback ip / 403 [Question] Wrong Videoplayback ip / 403 Aug 24, 2024
@unixfox unixfox added question Further information is requested and removed bug Something isn't working labels Aug 24, 2024
@r-eu9
Copy link
Author

r-eu9 commented Aug 27, 2024

Thx. The inv_sig_helper setup fixt it.

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

No branches or pull requests

3 participants