mirror of
https://github.com/iv-org/documentation.git
synced 2025-07-26 16:25:54 -04:00
Add QOL Improvements and Fix Issue #648
This PR adds some quality-of-life readability improvements and fixes #648.
This commit is contained in:
parent
ec79d88477
commit
e0a395641e
1 changed files with 130 additions and 114 deletions
|
@ -2,13 +2,13 @@
|
|||
|
||||
After installation take a look at the [Post-install steps](#post-install-configuration).
|
||||
|
||||
Note: Any [PaaS](https://en.wikipedia.org/wiki/Platform_as_a_service) or [SaaS](https://en.wikipedia.org/wiki/Software_as_a_service) provider/software (Heroku, YunoHost, Repli...) are unsupported. Use them at your own risk. They **WILL** cause problems with Invidious and might even suspend your account for "abuse" since Invidious is heavy, bandwidth intensive and technically a proxy (and most providers don't like them). If you use one and want to report an issue, please mention which one you use.
|
||||
>[!Note]
|
||||
> Any [PaaS](https://en.wikipedia.org/wiki/Platform_as_a_service) or [SaaS](https://en.wikipedia.org/wiki/Software_as_a_service) provider/software (Heroku, YunoHost, Repli...) are unsupported. Use them at your own risk. They **WILL** cause problems with Invidious and might even suspend your account for "abuse" since Invidious is heavy, bandwidth intensive and technically a proxy (and most providers don't like them). If you use one and want to report an issue, please mention which one you use.
|
||||
|
||||
# WARNING about this doc
|
||||
>[!WARNING]
|
||||
> This documentation is temporary and will explain the process for testing Invidious companion. Invidious companion is currently in testing in the master branch.
|
||||
> If you are using a reverse proxy then make sure to double check the [Post-install steps](#post-install-configuration) because you have new routes to add!
|
||||
|
||||
This documentation is temporary and will explain you how to test Invidious companion. Invidious companion is currently in testing in the master branch.
|
||||
|
||||
And if you are using a reverse proxy then make sure to read again the post install because you have new routes to add!
|
||||
|
||||
## Hardware requirements
|
||||
|
||||
|
@ -35,20 +35,34 @@ Make sure to run the newer Docker Compose V2: https://docs.docker.com/compose/in
|
|||
|
||||
|
||||
1. Execute these commands:
|
||||
|
||||
```bash
|
||||
git clone https://github.com/iv-org/invidious.git
|
||||
cd invidious
|
||||
```
|
||||
|
||||
2. Generate two secret keys, one for Invidious (HMAC_KEY) and one for Invidious companion (invidious_companion_key)
|
||||
```bash
|
||||
pwgen 16 1 # for Invidious (HMAC_KEY)
|
||||
pwgen 16 1 # for Invidious companion (invidious_companion_key)
|
||||
```
|
||||
|
||||
>[!IMPORTANT]
|
||||
> The Invidious companion key must follow specific rules or Invidious will throw an HTTP 400 error when loading videos.
|
||||
>
|
||||
> It must:
|
||||
> - Contain only alphanumeric characters (letters A-Z, a-z, and numbers 0-9).
|
||||
> - Avoid special characters (e.g., #, !, @, etc.), as they will cause a 400 "Bad Request" error.
|
||||
> - Be 16 characters long. No more, no less.
|
||||
>
|
||||
> We recommend generating the key using pwgen on Linux, e.g.:
|
||||
>
|
||||
> ```bash
|
||||
> pwgen 16 1
|
||||
> ```
|
||||
|
||||
|
||||
|
||||
|
||||
3. Edit the docker-compose.yml with this content:
|
||||
|
||||
```docker
|
||||
```yaml
|
||||
version: "3"
|
||||
services:
|
||||
|
||||
|
@ -142,9 +156,10 @@ Make sure to run the newer Docker Compose V2: https://docs.docker.com/compose/in
|
|||
companioncache:
|
||||
```
|
||||
|
||||
Note: This compose is made for a true "production" setup, where Invidious is behind a reverse proxy. If you prefer to directly access Invidious, replace `127.0.0.1:3000:3000` with `3000:3000` under the `ports:` section.
|
||||
>[!Note]
|
||||
> This compose is made for a true "production" setup, where Invidious is behind a reverse proxy. If you prefer to directly access Invidious, replace `127.0.0.1:3000:3000` with `3000:3000` under the `ports:` section.
|
||||
|
||||
4. Run the docker composition:
|
||||
5. Run the docker composition:
|
||||
|
||||
```
|
||||
docker compose up -d
|
||||
|
@ -216,15 +231,16 @@ exit
|
|||
su - invidious
|
||||
cd invidious
|
||||
make
|
||||
```
|
||||
#### Configure config/config.yml as you like
|
||||
|
||||
# Configure config/config.yml as you like
|
||||
cp config/config.example.yml config/config.yml
|
||||
```cp config/config.example.yml config/config.yml```
|
||||
|
||||
# edit config.yaml to include invidious companion
|
||||
#### edit config.yaml to include invidious companion
|
||||
|
||||
edit config/config.yaml
|
||||
```nano config/config.yaml```
|
||||
|
||||
add:
|
||||
```yaml
|
||||
invidious_companion:
|
||||
# URL used for the internal communication between invidious and invidious companion
|
||||
- private_url: "http://companion:8282"
|
||||
|
@ -234,12 +250,12 @@ invidious_companion:
|
|||
public_url: "http://localhost:8282"
|
||||
# IT is NOT recommended to use the same key as HMAC KEY. Generate a new key!
|
||||
invidious_companion_key: "CHANGE_ME!!"
|
||||
|
||||
# Deploy the database
|
||||
./invidious --migrate
|
||||
|
||||
exit
|
||||
```
|
||||
#### Deploy the database
|
||||
```./invidious --migrate```
|
||||
|
||||
```exit```
|
||||
|
||||
|
||||
#### Systemd service for Invidious
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue