30 lines
991 B
Markdown
30 lines
991 B
Markdown
Invidious, how I do it.
|
|
|
|
1. Clone with submodules!!! (`--recursive`)
|
|
2. Fill in placeholders
|
|
3. Schedule:
|
|
- [`reset.sh`](reset.sh) restarts Invidious.
|
|
- [`hard-reset.sh`](hard-reset.sh) updates and restarts everything. I suggest to schedule only this, daily.
|
|
|
|
Placeholders:
|
|
1. `192.168.81.2` in [docker-compose.yml](docker-compose.yml)
|
|
2. In both [config.yml](config.yml) and [config-refresh.yml](config-refresh.yml):
|
|
- `hmac_key` - see below
|
|
- `invidious_companion_key` - see below
|
|
- companions - [see here](/id.420129/companion-setup)
|
|
- (optional) `http_proxy`
|
|
- (optional) `modified_source_code_url`
|
|
|
|
You can generate keys with:
|
|
```
|
|
openssl rand -hex 8
|
|
```
|
|
|
|
---
|
|
|
|
#### `config.yml` vs `config-refresh.yml`
|
|
|
|
There are two Invidious instances (or, precisely, classes)
|
|
|
|
One handles "background work," that is **refreshing** stuff, like user subscriptions. It's not exposed to users. \
|
|
The other (replicated) is exposed to users and handles user stuff. It's what you see.
|