Commit Graph

93 Commits (618ab01cd75fe43ff8c47fc2454e12eedd41b56e)

Author SHA1 Message Date
Émilien Devos 3d77642a1e
Disable decrypt_polling by default + add comment (#3244) 2 years ago
Émilien Devos 644ba46945
Remove mentions that decrypt_polling is broken
And add notice about bandwidth usage, related to https://github.com/iv-org/invidious/issues/3234
2 years ago
Samantaz Fox 7f445f6167
Merge pull request #2915 from MathiusD/RefreshChannelsJob-frenquency
Allow configuration of the time between 2 RefreshChannelsJob
3 years ago
Samantaz Fox d8bb75be63
Document 'extend_desc' in config.example.yml
Thanks to "Le Jester" on Matrix for noticing that it was missing!
3 years ago
Féry Mathieu (Mathius) e60a1836fe
Lint config.example.yml and config.cr
Follow lint indications :
- https://github.com/iv-org/invidious/pull/2915#discussion_r812396203
- https://github.com/iv-org/invidious/pull/2915#discussion_r812396807
3 years ago
Féry Mathieu (Mathius) fd0ac3a671
Update management of channel_refresh_interval
Follow indications:
https://github.com/iv-org/invidious/pull/2915#discussion_r811373503
3 years ago
Féry Mathieu (Mathius) dfab62ce48
Rename new property to channel_refresh_interval
Follow indications :
https://github.com/iv-org/invidious/pull/2915#discussion_r811373503
3 years ago
Féry Mathieu (Mathius) 18197e7e3e
Lint description of channel_refresh_time 3 years ago
Féry Mathieu (Mathius) f75a81c9ee
Make configurable time between each RefreshChannelsJob 3 years ago
Dimitris Apostolou 7e4690e43c
Fix typos 3 years ago
Samantaz Fox e00f9a869d
config: remove note about QUIC disabled at Google
The situation is back to normal.
3 years ago
Tony Finn cdc007c83c
Specify the public schema for public videos
Unlike the other migrations, this one uses a bare table name to specify the table. This means it looks in the default search path. Unfortunately, the out of box search path is:

1. Schema with the same name as the user
2. Public

Because of this, if a schema exists with the same name as the DB user, the playlist_videos table will get created in _that_ schema, rather than the public schema, and then the grant statement will fail with an error like below if check_table is enabled as it keeps trying to create the table but failing on the grant statement:

```
2022-01-22 02:27:42 UTC [info] check_table: check_table: CREATE TABLE playlist_videos
Unhandled exception: relation "public.playlist_videos" does not exist (PQ::PQError)
  from /usr/share/crystal/src/primitives.cr:266:3 in 'handle_error'
  from lib/pg/src/pq/connection.cr:184:9 in 'handle_async_frames'
  from lib/pg/src/pq/connection.cr:162:7 in 'read'
  from lib/pg/src/pq/query.cr:53:14 in 'exec_all'
  from lib/db/src/db/database.cr:126:9 in '__crystal_main'
  from /usr/share/crystal/src/crystal/main.cr:110:5 in 'main'
  from src/env/__libc_start_main.c:94:2 in 'libc_start_main_stage2'
2022-01-22 02:27:43 UTC [info] check_table: check_table: CREATE TABLE playlist_videos
Unhandled exception: relation "public.playlist_videos" does not exist (PQ::PQError)
  from /usr/share/crystal/src/primitives.cr:266:3 in 'handle_error'
  from lib/pg/src/pq/connection.cr:184:9 in 'handle_async_frames'
  from lib/pg/src/pq/connection.cr:162:7 in 'read'
  from lib/pg/src/pq/query.cr:53:14 in 'exec_all'
  from lib/db/src/db/database.cr:126:9 in '__crystal_main'
  from /usr/share/crystal/src/crystal/main.cr:110:5 in 'main'
  from src/env/__libc_start_main.c:94:2 in 'libc_start_main_stage2'
```
3 years ago
Émilien Devos 7b9f5d74dc Create videos caching table as UNLOGGED 3 years ago
Samantaz Fox 4940759627
Example config: Change 'use_quic' default value
Related to commit a120f143d7
Also point towards the Github issue.
3 years ago
Samantaz Fox a12571e748
Fix minor error in config.example.yml
Update the "note" for `locale`
3 years ago
Dmitry Sandalov ea0b1fdf44
Feature Request: Localization for trending (reword region doc) 3 years ago
Dmitry Sandalov d9c58c4837
Feature Request: Localization for trending iv-org#331 3 years ago
JuniorJPDJ df968d1919
variable postgres username and database name (#2451) 3 years ago
Samantaz Fox adc12addfa
Add config option to display source code URL in footer (#2450) 3 years ago
syeopite 347c189f3f
Merge pull request #1678 from Rjevski/idempotent-database-migrations
Make DB migrations idempotent.
3 years ago
Samantaz Fox 9f5f5da894
config_example.yaml: document all possible options (#2083)
Fixes https://github.com/iv-org/documentation/issues/46
3 years ago
Andre Borie 79e99908de Allow providing 12-Factor-style Database URL in config 4 years ago
Andre Borie ffa9e5dfab Make migrations (mostly) idempotent. 4 years ago
saltycrys b566c4ba1a
Untrack config.yml (#1557)
* Untrack config.yml

`config/config.yml` has been untracked and moved to `config/config.example.yml`.

The Dockerfile has been updated to copy all `config/config.*` files and to try
to move `config/config.example.yml` to `config/config.yml`. If a user supplied
`config/config.yml` exists it is not overwritten.

* Update Dockerfile to use `shard.lock`

* Fix tests
4 years ago
Omar Roth 074497b0f6
Add migration script for polymer redesign 5 years ago
Omar Roth 1eca969cf6
Add support for polymer redesign 5 years ago
Omar Roth 61150c74d2
Move privacy type into playlists.sql 5 years ago
Omar Roth be055d9dcb
Add support for custom playlists 5 years ago
Silvan Mosberger 418526af16
Provide db user in migrate-db-3646395.sh 5 years ago
Omar Roth 18d66ddded
Add 'needs_update' column for scheduling feed refresh 6 years ago
Omar Roth 64464f23ae
Add 'views' to channel_videos 6 years ago
Omar Roth 42dd6326d5 Remove unnecessary index 6 years ago
Omar Roth 698dfca319 Add migrate script for annotations.sql 6 years ago
Omar Roth 3bcb98e644 Add config option to cache annotations from IA 6 years ago
Omar Roth c5001f3620 Add role to psql scripts 6 years ago
Omar Roth 591a6b330a Remove 'crawl_threads', fix sleep in fibers 6 years ago
Omar Roth a1f49b279f Rename migrate scripts 6 years ago
Omar Roth fd26f9f34e Add support for premieres to search and feed 6 years ago
Omar Roth f0658bbd09 Add 'liveNow' to subscription feed 6 years ago
Omar Roth 90715467a2 Set default value for 'subscribed' date 6 years ago
Omar Roth 7425700009 Update pubsub to support lease_seconds 6 years ago
Omar Roth 64cfd2296c Add support for subscribing to channels via PubSubHubbub 6 years ago
Omar Roth 17cf0772fb Set domain to be nil by default 6 years ago
Omar Roth 52cad8d6da Update change index for channel_videos and add index for nonces 6 years ago
Omar Roth ff563a70a5 Fix typo in session_ids 6 years ago
Omar Roth 5528a130b6 Mark migrate-db-3646395.sh as executable 6 years ago
Omar Roth a384f6e5fd Add migrate script and update README 6 years ago
Omar Roth 3646395f1d Store session_ids in separate table 6 years ago
Omar Roth 0d509c82ee Rename migrate-db-e1aa1ce.sh to migrate-db-30e6d29.sh 6 years ago
Omar Roth 30e6d29106 Add 'deleted' to channel info 6 years ago