Motore di ricerca video globale per istanze Peertube. Cercando una parola chiave, il servizio restituisce tutti i video dalle istanze peertube federate. E' possibile applicare un ordinare per data, durata o per lingua https://sepiasearch.peertube.uno
Go to file
Jorge Paulo Malveira Pimentel Dos Santos 836d2ee2c9 Added translation using Weblate (French) 2022-01-03 13:54:00 +01:00
PeerTube@b033851fb5 Support handles and uuids filters 2021-07-29 10:57:33 +02:00
client Added translation using Weblate (French) 2022-01-03 13:54:00 +01:00
config Add playlist in client 2021-06-24 17:20:51 +02:00
server Query helpers refactoring 2021-11-24 13:46:03 +01:00
shared Add ability to customize instance 2020-09-18 16:29:32 +02:00
support Add nginx template 2020-08-13 08:05:59 +02:00
themes/framasoft Fix framasoft's theme on small devices 2020-09-21 14:02:26 +02:00
.eslintrc.json Fix body payload 2020-05-29 16:16:55 +02:00
.gitignore First commit 2020-02-13 11:49:03 +01:00
.gitmodules Use https for git 2020-03-04 11:45:39 +01:00
LICENSE First commit 2020-02-13 11:49:03 +01:00
README.md Update readme 2021-07-28 13:36:20 +02:00
package.json Fix build 2021-08-13 08:15:01 +02:00
server.ts Handle playlist search in server 2021-06-24 16:01:24 +02:00
tsconfig.json Index videos 2020-02-13 16:06:52 +01:00
yarn.lock Upgrade server dependencies 2021-06-25 10:04:50 +02:00

README.md

Application behind search.joinpeertube.org

Dev

$ git submodule update --init --recursive
$ yarn install --pure-lockfile

The database (Elastic Search) is automatically created by PeerTube at startup.

Run simultaneously (for example with 3 terminals):

$ tsc -w
$ node dist/server
$ cd client && npm run serve

Then open http://localhost:8080.

Add locale

Add the locale in client/src/main.ts and client/Makefile. Then update translations.

Production

Install dependencies:

  • NodeJS (v12)
  • Elastic Search
$ git clone https://framagit.org/framasoft/peertube/search-index.git /var/www/peertube-search-index
$ cd /var/www/peertube-search-index
$ git submodule update --init --recursive
$ yarn install --pure-lockfile
$ npm run build
$ cp config/default.yaml config/production.yaml
$ vim config/production.yaml
$ NODE_ENV=production NODE_CONFIG_DIR=/var/www/peertube-search-index/config node dist/server.js

Mapping migration

To update Elastic Search index mappings without downtime, run another instance of the search indexer using the same configuration that the main node. You just have to update elastic-search.indexes.* to use new index names.

$ cd /var/www/peertube-search-index
$ cp config/production.yaml config/production-1.yaml
$ vim config/production-1.yaml
$ NODE_ENV=production NODE_APP_INSTANCE=1 NODE_CONFIG_DIR=/var/www/peertube-search-index/config node dist/server.js

After a while the new indexes will be filled. You can then stop the second indexer, update config/production.yaml to use the new index names and restart the main index.