Giter VIP home page Giter VIP logo

Comments (9)

vid-bin avatar vid-bin commented on June 3, 2024

Well, I tried to use a wireguard instance. Let peertube listen on the wireguard IP, then tried to use the standard nginx config on the remote server. This worked, but videos didn't play.

What's the best config currently for a nginx proxy mirror -> nginx main (local) -> peertube (local) ?

from peertube.

Chocobozzz avatar Chocobozzz commented on June 3, 2024

Hello,

PeerTube generates URLs using your webserver config: https://github.com/Chocobozzz/PeerTube/blob/develop/config/production.yaml.example#L6

So the webserver section in your config should represent the public URL of your nginx proxy mirror

from peertube.

vid-bin avatar vid-bin commented on June 3, 2024

Hello,

PeerTube generates URLs using your webserver config: https://github.com/Chocobozzz/PeerTube/blob/develop/config/production.yaml.example#L6

So the webserver section in your config should represent the public URL of your nginx proxy mirror

Right so that's what I'm saying. When clicking on a URL in the redundancy page it redirects to url:port when it should just be url.

The printed URL is correct but the hyperlink goes to url:port.

from peertube.

Chocobozzz avatar Chocobozzz commented on June 3, 2024

The printed URL is correct but the hyperlink goes to url:port

Can you create manually a redundancy on a new video to check if it's not an issue only with old redundancies?

from peertube.

vid-bin avatar vid-bin commented on June 3, 2024

I just followed diode.zone and manually created a mirror of a video. The URL is correct (including hyperlink) but when opening the URL it redirects to vidbin.org:301, the internal nginx server port.

Try going to https://vidbin.org/static/redundancy/hls/45f9cf25-f3a1-4b35-be76-1b1662225bb6

Screenshot 2024-02-19 at 8 27 26 AM

from peertube.

vid-bin avatar vid-bin commented on June 3, 2024

Also the videos my instance hosts play fine, so I'm not sure if this is a bug in peertube or something to do with my nginx configuration.

from peertube.

Chocobozzz avatar Chocobozzz commented on June 3, 2024

Try going to https://vidbin.org/static/redundancy/hls/45f9cf25-f3a1-4b35-be76-1b1662225bb6

PeerTube doesn't have redirects on this route, so I think it's a nginx issue?

from peertube.

vid-bin avatar vid-bin commented on June 3, 2024

I'm using the standard nginx config that comes with peertube on the main server. This is the current cache mirror configuration:

https://gist.github.com/vid-bin/c7b860e67b56cc6c8b40a46a51f66ebe#file-gistfile1-txt

I don't see anything that would specifically make redundancy videos redirect to port 301. All other pages on peertube appear to work fine.

from peertube.

vid-bin avatar vid-bin commented on June 3, 2024

I changed the config to not use the port and just use standard 443 which did solve that issue, but now I'm getting 404 not found errors when trying to browse the redundancy video directly. Unsure if that's normal behavior for redundancy videos or if it's a bug, because I've never used redundancy with peertube before.

https://vidbin.org/redundancy/hls/6a88a567-f3d2-4dfa-962b-7983fd1f1446

from peertube.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.