-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Login broken on instances served on the tor network if they are also served on the clearnet #1421
Comments
I dont think it was ever possible to login on an onion instance which actually was just a clearnet instance but is exposed through an onion url too. To support login on onion, I think you would need to host a onion only instance. Maybe invidious could support serving two domains at the same time. Searching is also broken on clearnet, see #1422 |
I was brainstorming this with snopyta's maintainers Observed issuesWe noticed following issue highlighted in (among others) RSS feed i.e. http://c7hqkpkpemu6e7emz5b4vyz7idjgdvgaaa3dyimmeojqbgpea3xqjoid.onion/channel/UCVls1GmFKf6WlTraIb_IaJg generates XML file storing: <feed xmlns:yt="http://www.youtube.com/xml/schemas/2015" xmlns:media="http://search.yahoo.com/mrss/" xmlns="http://www.w3.org/2005/Atom" xml:lang="en-US">
<link rel="self" href="/feed/channel/UCVls1GmFKf6WlTraIb_IaJg"/> Which is invalid due to the
that expects
assuming Which is supposed to expand from variable Line 55 in 192d2b8
invidious/src/invidious/helpers/utils.cr Line 273 in 192d2b8
Proposed solutionI was helping set up dotya.ml's hidden service for gitea which had/has same issue as explained in https://git.dotya.ml/dotya.ml/community/issues/21 and resolved in https://git.dotya.ml/dotya.ml/gitea-templates/commit/26b38bf13d6b145f073f033378f7c1afdc2cdcea in terms of image sources to use relative paths. but i think the solution here should be to rework https://github.com/iv-org/invidious/blob/master/src/invidious/helpers/utils.cr#L273 to allow for On clear -> Store Happy to consider contribution based on what we agree on should be the solution. UPDATE: These variables can be used to to craft expression based on where the service is deployed:
I currently can't develop solution due to the #1487 |
A 10$ bounty has been added to this issue. Anyone opening a PR fixing this issue, will receive 10$ (in BTC) from the Invidious project. More details: #1898 |
I have a fix, which is to be used in nginx, does that count? |
@FireMasterK Ideally invidious should support multiples domain names (or 1 domain name + 1 tor onion). A solution with nginx is "good" but far from ideal. |
That's what I use. You can change invidious.kavin.rocks to your instance. |
This issue has been automatically marked as stale and will be closed in 30 days because it has not had recent activity and is much likely outdated. If you think this issue is still relevant and applicable, you just have to post a comment and it will be unmarked. |
This could be resolved by using |
I can't recall everything, but it's being used in many places. One of which is to be sure that the video player will use the correct domain for proxying the video stream from YouTube servers. But to be 100% fair, it's a relic from the past. In my opinion, invidious should find the correct domain only from the header As the |
If this is to add multiple domain support I would contribute $15 USD in BTC just let me know how. Offer retracted if I am the one that does it :P I may have opened a duplicate. See related #5002 |
Hello,
I can login and perform a search on instances, but when i'm switching on their onion version (using the button "onion site" on the Tor adress bar), it doesn't work as well, logginig in redirects me to homepage where i'lm still disconnected and search returns me zero results. I tested with all instances that happens to have an onion version.
For wich reason are there issues on onion sites that doesn't exist on their clearweb version ?
The text was updated successfully, but these errors were encountered: