2020-02-13 11:49:03 +01:00
|
|
|
listen:
|
|
|
|
hostname: 'localhost'
|
|
|
|
port: 3234
|
|
|
|
|
|
|
|
webserver:
|
|
|
|
https: false
|
|
|
|
hostname: 'localhost'
|
|
|
|
port: 3234
|
|
|
|
|
2020-09-18 16:29:32 +02:00
|
|
|
elastic-search:
|
2021-02-03 11:49:26 +01:00
|
|
|
# https or http
|
|
|
|
http: 'http'
|
2021-02-04 08:55:02 +01:00
|
|
|
auth:
|
|
|
|
username: null
|
|
|
|
password: null
|
2021-02-03 11:49:26 +01:00
|
|
|
ssl:
|
|
|
|
# Specificy a custom CA
|
|
|
|
ca: null
|
2020-02-13 11:49:03 +01:00
|
|
|
hostname: 'localhost'
|
|
|
|
port: 9200
|
|
|
|
indexes:
|
|
|
|
videos: 'peertube-index-videos'
|
2020-02-19 15:39:35 +01:00
|
|
|
channels: 'peertube-index-channels'
|
2021-06-24 15:18:54 +02:00
|
|
|
playlists: 'peertube-index-playlists'
|
2020-02-13 11:49:03 +01:00
|
|
|
|
|
|
|
log:
|
|
|
|
level: 'debug' # debug/info/warning/error
|
|
|
|
|
2020-08-27 14:44:21 +02:00
|
|
|
search-instance:
|
|
|
|
name: 'PeerTube Search Index'
|
2020-09-18 16:29:32 +02:00
|
|
|
|
|
|
|
# Set an image instead of displaying your website title in text at the top of the search page
|
|
|
|
# Must be a relative URL. For example if you use a theme: /theme/mytheme/img/title.svg
|
|
|
|
name_image: ''
|
|
|
|
|
|
|
|
# The image between the title and the search bar
|
|
|
|
search_image: ''
|
|
|
|
|
2020-09-16 10:54:52 +02:00
|
|
|
description: 'A search engine of PeerTube videos and channels, developed by Framasoft'
|
2020-09-02 14:07:22 +02:00
|
|
|
legal_notices_url: ''
|
2020-09-18 16:29:32 +02:00
|
|
|
theme: 'default'
|
2020-08-27 14:44:21 +02:00
|
|
|
|
2020-02-13 11:49:03 +01:00
|
|
|
instances-index:
|
2020-05-28 15:00:37 +02:00
|
|
|
# Contains PeerTube instance hosts the indexer will index
|
|
|
|
# Must answer the following format: https://framagit.org/framasoft/peertube/instances-peertube#peertube-auto-follow-global-search
|
|
|
|
url: 'https://instances.joinpeertube.org/api/v1/instances/hosts'
|
|
|
|
|
2020-09-02 10:17:50 +02:00
|
|
|
# A public URL that will be displayed in the search page
|
|
|
|
# So your users can see what instances your search instance indexed
|
|
|
|
public_url: 'https://instances.joinpeertube.org'
|
|
|
|
|
2020-06-11 11:04:00 +02:00
|
|
|
# Useful to do tests
|
|
|
|
whitelist:
|
|
|
|
enabled: false
|
|
|
|
hosts: null
|
|
|
|
|
2020-09-23 11:17:43 +02:00
|
|
|
videos-search:
|
|
|
|
# Allow client to send browser language to boost results score that are in these languages
|
|
|
|
boost-languages:
|
|
|
|
enabled: true
|
|
|
|
|
2020-10-23 10:14:44 +02:00
|
|
|
# Add ability to change videos search fields boost value
|
|
|
|
# See https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-multi-match-query.html for more information
|
|
|
|
# If boost == 0, the field will not be part of the search
|
|
|
|
search-fields:
|
|
|
|
name:
|
|
|
|
boost: 5
|
|
|
|
description:
|
|
|
|
boost: 1
|
|
|
|
tags:
|
2021-05-05 11:41:39 +02:00
|
|
|
boost: 2
|
2020-10-23 10:14:44 +02:00
|
|
|
account-display-name:
|
|
|
|
boost: 2
|
|
|
|
channel-display-name:
|
|
|
|
boost: 2
|
|
|
|
|
|
|
|
channels-search:
|
|
|
|
# Add ability to change channels search fields boost value
|
|
|
|
# See https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-multi-match-query.html for more information
|
|
|
|
# If boost == 0, the field will not be part of the search
|
|
|
|
search-fields:
|
|
|
|
name:
|
|
|
|
boost: 5
|
|
|
|
description:
|
|
|
|
boost: 1
|
|
|
|
display-name:
|
|
|
|
boost: 3
|
|
|
|
account-display-name:
|
|
|
|
boost: 2
|
|
|
|
|
2021-06-24 15:18:54 +02:00
|
|
|
playlists-search:
|
|
|
|
# Add ability to change playlists search fields boost value
|
|
|
|
# See https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-multi-match-query.html for more information
|
|
|
|
# If boost == 0, the field will not be part of the search
|
|
|
|
search-fields:
|
2021-06-24 16:53:43 +02:00
|
|
|
display-name:
|
2021-06-24 15:18:54 +02:00
|
|
|
boost: 5
|
|
|
|
description:
|
|
|
|
boost: 1
|
|
|
|
|
2020-06-11 11:04:00 +02:00
|
|
|
api:
|
2020-08-27 14:44:21 +02:00
|
|
|
# Blacklist hosts that will not be returned by the search API
|
2020-06-11 11:04:00 +02:00
|
|
|
blacklist:
|
|
|
|
enabled: false
|
2020-08-27 14:44:21 +02:00
|
|
|
# Array of hosts
|
2020-06-11 11:04:00 +02:00
|
|
|
hosts: null
|