From 156a3ad53d031f0d7c43c0e5ea2d57aba12769e4 Mon Sep 17 00:00:00 2001 From: PLUJA <64632615+pluja@users.noreply.github.com> Date: Sat, 26 Sep 2020 14:20:35 +0200 Subject: [PATCH 1/5] Update SELF-HOSTING.md --- SELF-HOSTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SELF-HOSTING.md b/SELF-HOSTING.md index 39ac75f..886afd9 100644 --- a/SELF-HOSTING.md +++ b/SELF-HOSTING.md @@ -189,7 +189,7 @@ server { expires 30d; } - location ~ (/videoplayback|/vi/) { + location ~ (/videoplayback|/vi/|/a) { proxy_buffering off; resolver 1.1.1.1; proxy_pass https://$arg_hostname; From a06281c4120e5e0821085dd15fa2b20b629ed2ff Mon Sep 17 00:00:00 2001 From: PLUJA <64632615+pluja@users.noreply.github.com> Date: Sat, 26 Sep 2020 14:23:10 +0200 Subject: [PATCH 2/5] Instructions on how to update --- CHANGELOG.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f8a1e3..7d0b293 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,26 @@ - Play tweet videos from Parasitter. - Create following lists. +## [0.2.7] - 2020.09.26 +## How to update: +1. See [UPDATE](https://github.com/ytorg/Yotter/blob/dev-indep/SELF-HOSTING.md#updating-the-server) if you are on a manual installation. Docker can be updated normally. + +2. **IMPORTANT** You will need to change the nginx config file (`/etc/nginx/sites-enabled/yotter`) by adding `/a` on the proxy rule so it should look like this: +``` +location ~ (/videoplayback|/vi/|/a) { + proxy_buffering off; + resolver 1.1.1.1; + proxy_pass https://$arg_hostname; + proxy_set_header Host $arg_hostname; + add_header Access-Control-Allow-Origin *; +} +``` + +3. Reload nginx `sudo service nginx reload` + +## Fixed +- [x] Channel images were not proxied. + ## [0.2.6] - 2020.09.20 ### How to update 1. See [UPDATE](https://github.com/ytorg/Yotter/blob/dev-indep/SELF-HOSTING.md#updating-the-server) if you are on a manual installation. Docker can be updated normally. From 5702760337fa8b1cba259037a73acb658a80ddbe Mon Sep 17 00:00:00 2001 From: PLUJA <64632615+pluja@users.noreply.github.com> Date: Sat, 26 Sep 2020 14:25:28 +0200 Subject: [PATCH 3/5] Update instrucitons --- CHANGELOG.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7d0b293..1b5fd5a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ - Create following lists. ## [0.2.7] - 2020.09.26 -## How to update: +### How to update: 1. See [UPDATE](https://github.com/ytorg/Yotter/blob/dev-indep/SELF-HOSTING.md#updating-the-server) if you are on a manual installation. Docker can be updated normally. 2. **IMPORTANT** You will need to change the nginx config file (`/etc/nginx/sites-enabled/yotter`) by adding `/a` on the proxy rule so it should look like this: @@ -25,7 +25,7 @@ location ~ (/videoplayback|/vi/|/a) { 3. Reload nginx `sudo service nginx reload` -## Fixed +### Fixed - [x] Channel images were not proxied. ## [0.2.6] - 2020.09.20 @@ -36,11 +36,11 @@ location ~ (/videoplayback|/vi/|/a) { 3. Reload nginx `sudo service nginx reload` -## Added +### Added - [x] Admin tools - Delete inactive users. - [x] Youtube: Play only audio. -## Changed +### Changed - [x] Database character limits. ## [0.2.5] - 2020.09.10 @@ -66,14 +66,13 @@ location ~ (/videoplayback|/vi/|/a) { 7. Edit your `yotter-config.json` file and enable the `nginxVideoStream` option. 8. `sudo service nginx reload` 9. `sudo supervisorctl start yotter` -` -#### Added +### Added - [x] Nginx video streaming for better experience - [See how to activate it]() - [x] New data extractor module for videos. - [x] Show deleted tweets as deleted instead of error. -#### Fixed +### Fixed - [x] Youtube feed not loading due to datetime not found ## [0.2.4] - 2020.09.07 From 4bacf500c6d8f89e4738d00c38cc4a6b44254193 Mon Sep 17 00:00:00 2001 From: PLUJA <64632615+pluja@users.noreply.github.com> Date: Sat, 26 Sep 2020 14:31:54 +0200 Subject: [PATCH 4/5] Increase youtube channel follow size. --- SELF-HOSTING.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/SELF-HOSTING.md b/SELF-HOSTING.md index 886afd9..e4fb4f4 100644 --- a/SELF-HOSTING.md +++ b/SELF-HOSTING.md @@ -241,3 +241,14 @@ But you must know that videos and images are proxied through the instance. So we You can now reload the server and you will see that, without logging in, you can now watch videos. +### Increasing the channel name max size on the database (Only installations older than 2020.09.20) + +On older versions the character limit for a Youtube suscritpion was 30. This caused some problems with channels that had a longer string for the channel name. Since 2020.09.20 version, this problem was solved, but for older installation the problem persists even if you update to the latest github version. + +To solve this, we will need to modify our database and set up new character limits. Don't worry, it's easy. + +First you need to open the MySQL prompt. This can be done wiht `mysql -u root -p`. It will prompt you the **mysql database root user password**, note that it is NOT the *sudo* password. Once you're in the MySQL prompt (`mysql>`) you can execute these commands: + +1. `connect yotter;` - This will connect you to the yotter database. +2. `ALTER TABLE channel MODIFY COLUMN channelName VARCHAR(100);` - This alters the field `channelName` from the table `channel` and sets its limit to `100` characters. +3. `quit;` From 9f583e8c1d35b1afa365b510d817bb82dcc5554e Mon Sep 17 00:00:00 2001 From: PLUJA <64632615+pluja@users.noreply.github.com> Date: Sat, 26 Sep 2020 14:32:07 +0200 Subject: [PATCH 5/5] Update SELF-HOSTING.md --- SELF-HOSTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SELF-HOSTING.md b/SELF-HOSTING.md index e4fb4f4..915e5c2 100644 --- a/SELF-HOSTING.md +++ b/SELF-HOSTING.md @@ -13,7 +13,7 @@ When you self-host you make internet stronger and more censorship resistant. If * [Manual Installation](#manual-installation) * [Nginx and HTTPS](#nginx-set-up-and-HTTPS) * [Update](#updating-the-server) -* [Others](#other configurations) +* [Others](#other-configurations) ## Pre-Installation