3
submitted 1 year ago by dotinho@alien.top to c/main@selfhosted.forum

Hi all,

I'm using viewtube for 3 days, and I love it.

My next step is migrate all request to that service, I test the video/playlist url os the same, and I use pi-hole as my local dns server.

Is possible to rewrite the domain on pi-hole? like any request to YouTube.com/watch?v=v43DXkj5b0I to mydomain.com/watch?v=v43DXkj5b0I ?

I was reading pi-hole docs and I can't find anything useful for this feature.

Thank you.

you are viewing a single comment's thread
view the rest of the comments
[-] rasg@alien.top 1 points 1 year ago

i have something similar with another service.

  1. local DNS (dnsmasq) to redirect requests (officialservice.com -> localservice.local)
  2. localservice.local is my apache proxy setting headers and opening all http requests to replace the links inside the page

quick example

ProxyHTMLEnable     on

[...]

ProxyHTMLURLMap     /aaa    /bbb/ccc

[...]

AddOutputFilterByType INFLATE;SUBSTITUTE;DEFLATE application/x-javascript
Substitute 's|/service/aaa/|/service/bbb/|nq' Substitute 's|/domain/res/|/anotherdomain/res/|nq'
[-] ProgrammerPlus@alien.top 1 points 1 year ago

Why not use SNIProxy?

load more comments (1 replies)
this post was submitted on 29 Oct 2023
3 points (100.0% liked)

Self-Hosted Main

504 readers
1 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

For Example

We welcome posts that include suggestions for good self-hosted alternatives to popular online services, how they are better, or how they give back control of your data. Also include hints and tips for less technical readers.

Useful Lists

founded 1 year ago
MODERATORS