Files
invidious/README.md
T
2025-06-18 11:27:18 +02:00

2.2 KiB

Invidious.nerdvpn.de

Invidious fork with customizations for invidious.nerdvpn.de

Theme for my instance is based on: https://github.com/Tsyron/Invidious-Theme

Original repo at: https://github.com/iv-org/invidious

Based upon patches from: https://github.com/yewtudotbe/invidious-custom https://git.nadeko.net/Fijxu/invidious

<<<<<<< HEAD

IMPORTANT

The instructions below are outdated. YouTube is currently quadrupling down on trying to block Invidious instances, so there are almost daily changes to my server setup. I haven't found the time yet to provide new/better instructions, so the instructions below should be taken with some grain of salt.

Requirements - you need to set this up before running my fork

  1. HAProxy 2.x either run on the host or added to the docker-compose.yaml with my config under etc/haproxy/haproxy.cfg
  2. PostgreSQL 16 server either run on the host or added to the docker-compose.yaml
  3. (optional bvut highly recommended) PGBouncer to pool the connections to PostgreSQL. You'll otherwise run into lots of db pool errors under high loads
  4. Nginx with my configs under etc/nginx
  5. Valid ssl certificate for your domain. I recommend using dehydrated: https://github.com/dehydrated-io/dehydrated
  6. Docker compose V2

9de2789 (Change to multiple backends)

Build instructions

Do this in a separate dir (for example /srv/invidious) under non-root permissions

  1. git clone https://github.com/Sommerwiesel/invidious-nerdvpn .
  2. git clone https://github.com/iv-org/invidious build
  3. git clone https://github.com/iv-org/invidious-companion companion
  4. Modify the patches under invidious-nerdvpn/patches to your needs (i.e. change branding) and then run ./patch.sh
  5. ./build.sh development for the development image or ./build.sh release for the production image
  6. build.sh companion to build the invidious companion

Update instructions

  1. Run ./revert.sh to remove all patches
  2. Update both repos (build and companion) via git pull
  3. Run the steps 5 and 6 again fro mthe run instructions

Run instructions (docker compose)

  • Simply run docker compose up -d

Run instructions (systemd)

First copy the invidious.service to /etc/systemd/system/

  • Enable and start with: systemctl enable --now invidious.service