GithubHelp home page GithubHelp logo

How to modify the gateway about dtube HOT 19 CLOSED

dtube avatar dtube commented on June 28, 2024
How to modify the gateway

from dtube.

Comments (19)

skzap avatar skzap commented on June 28, 2024 2

This app only controls the pictures. So if you remove ipfs.io and only use snap.d.tube for pictures, it should work. If you want videos to load through another gateway for the videos, you will need to edit the player: https://github.com/dtube/embed

Changing to another gateway will probably not be a good solution as it would end up with this new gateway being banned in your country in the future. The only real change that can happen, is implementing js-ipfs into our player for direct loading (without gateway).

from dtube.

wg1929 avatar wg1929 commented on June 28, 2024 1

modify the gateway

from dtube.

kirkins avatar kirkins commented on June 28, 2024 1

@wg1929 I think you can do a search in the source code for ipfs.io then replace that with an alternative gateway. Here is a list of alternative gateways.

Info from related issues on IPFS repo:

ipfs/kubo#4765

ipfs/community#290

from dtube.

bostrot avatar bostrot commented on June 28, 2024

Run your own ipfs daemon: https://ipfs.io/docs/getting-started/

from dtube.

wg1929 avatar wg1929 commented on June 28, 2024

You did not think seriously about this answer. I certainly have no problem with myself. But what about others? I can't ask everyone to install this

from dtube.

qwertychouskie avatar qwertychouskie commented on June 28, 2024

Use Tor/a VPN.

from dtube.

kirkins avatar kirkins commented on June 28, 2024

@wg1929 why don't you make a live fork of dtube with a different gateway.

Why should the rest of the internet change because your country is an oppressive ************ censoring the internet?

from dtube.

wg1929 avatar wg1929 commented on June 28, 2024

@kirkins how to revise the gateway

from dtube.

kirkins avatar kirkins commented on June 28, 2024

Might need other changes not sure never ran this locally. Hopefully the info can help you in getting started.

from dtube.

wg1929 avatar wg1929 commented on June 28, 2024

@skzap I modified the player,But how do you install it?...

from dtube.

skzap avatar skzap commented on June 28, 2024

in client/views/commons/videos/player.js, just change emb.d.tube for your own modified player !

Our player is hosted with github pages, so you can do the same with your modified player and it will give you a nice url even with https.

from dtube.

wg1929 avatar wg1929 commented on June 28, 2024

@skzap Can the player be called directly by uploading it to the server?

from dtube.

wg1929 avatar wg1929 commented on June 28, 2024

@skzap Or modify this https://github.com/dtube/production

from dtube.

skzap avatar skzap commented on June 28, 2024

Yes the player is a static application too. You can host it on github pages directly and it will give you https://wg1929.github.io/embed link that you can use.

from dtube.

wg1929 avatar wg1929 commented on June 28, 2024

@skzap Ok, thank you very much

from dtube.

wg1929 avatar wg1929 commented on June 28, 2024

@skzap Can I modify the player directly here? If so, how to modify https://github.com/dtube/production

from dtube.

arni077 avatar arni077 commented on June 28, 2024

@bostrot Does integrating IPFS daemon in a browser will make every person who use this browser to surf freely in any ipfs website without the influence of any existing ban(for example: china ban) ?

from dtube.

bostrot avatar bostrot commented on June 28, 2024

@arni077 Well you don't integrate an IPFS daemon in a browser. You normally create a server with it and then, yes, everyone who has access to this server can access the gateway.

I am not sure if everything would work as expected but you can of course try it.

If you are on mobile you can use the app I made which is available on Google Play and the App Store: https://github.com/bostrot/DTubeViewer where the ipfs gateway can be customized.

from dtube.

techcoderx avatar techcoderx commented on June 28, 2024

Gateway switcher was added to the embed payer, pull request here, video demo here.

from dtube.

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.