aboutsummaryrefslogtreecommitdiffhomepage
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/default.yaml33
-rw-r--r--config/production.yaml.example33
-rw-r--r--config/test.yaml22
3 files changed, 72 insertions, 16 deletions
diff --git a/config/default.yaml b/config/default.yaml
index f6e944298..050019670 100644
--- a/config/default.yaml
+++ b/config/default.yaml
@@ -94,14 +94,6 @@ log:
94 maxFiles: 20 94 maxFiles: 20
95 anonymizeIP: false 95 anonymizeIP: false
96 96
97search:
98 # Add ability to fetch remote videos/actors by their URI, that may not be federated with your instance
99 # If enabled, the associated group will be able to "escape" from the instance follows
100 # That means they will be able to follow channels, watch videos, list videos of non followed instances
101 remote_uri:
102 users: true
103 anonymous: false
104
105trending: 97trending:
106 videos: 98 videos:
107 interval_days: 7 # Compute trending videos for the last x days 99 interval_days: 7 # Compute trending videos for the last x days
@@ -382,3 +374,28 @@ broadcast_message:
382 message: '' # Support markdown 374 message: '' # Support markdown
383 level: 'info' # 'info' | 'warning' | 'error' 375 level: 'info' # 'info' | 'warning' | 'error'
384 dismissable: false 376 dismissable: false
377
378search:
379 # Add ability to fetch remote videos/actors by their URI, that may not be federated with your instance
380 # If enabled, the associated group will be able to "escape" from the instance follows
381 # That means they will be able to follow channels, watch videos, list videos of non followed instances
382 remote_uri:
383 users: true
384 anonymous: false
385
386 # Use a third party index instead of your local index, only for search results
387 # Useful to discover content outside of your instance
388 # If you enable search_index, you must enable remote_uri search for users
389 # If you do not enable remote_uri search for anonymous user, your instance will redirect the user on the origin instance
390 # instead of loading the video locally
391 search_index:
392 enabled: false
393 # URL of the search index, that should use the same search API and routes
394 # than PeerTube: https://docs.joinpeertube.org/api-rest-reference.html
395 # You should deploy your own with https://framagit.org/framasoft/peertube/search-index,
396 # and can use https://search.joinpeertube.org/ for tests, but keep in mind the latter is an unmoderated search index
397 url: ''
398 # You can disable local search, so users only use the search index
399 disable_local_search: false
400 # If you did not disable local search, you can decide to use the search index by default
401 is_default_search: false
diff --git a/config/production.yaml.example b/config/production.yaml.example
index e21528821..6f658e61a 100644
--- a/config/production.yaml.example
+++ b/config/production.yaml.example
@@ -95,14 +95,6 @@ log:
95 maxFiles: 20 95 maxFiles: 20
96 anonymizeIP: false 96 anonymizeIP: false
97 97
98search:
99 # Add ability to fetch remote videos/actors by their URI, that may not be federated with your instance
100 # If enabled, the associated group will be able to "escape" from the instance follows
101 # That means they will be able to follow channels, watch videos, list videos of non followed instances
102 remote_uri:
103 users: true
104 anonymous: false
105
106trending: 98trending:
107 videos: 99 videos:
108 interval_days: 7 # Compute trending videos for the last x days 100 interval_days: 7 # Compute trending videos for the last x days
@@ -396,3 +388,28 @@ broadcast_message:
396 message: '' # Support markdown 388 message: '' # Support markdown
397 level: 'info' # 'info' | 'warning' | 'error' 389 level: 'info' # 'info' | 'warning' | 'error'
398 dismissable: false 390 dismissable: false
391
392search:
393 # Add ability to fetch remote videos/actors by their URI, that may not be federated with your instance
394 # If enabled, the associated group will be able to "escape" from the instance follows
395 # That means they will be able to follow channels, watch videos, list videos of non followed instances
396 remote_uri:
397 users: true
398 anonymous: false
399
400 # Use a third party index instead of your local index, only for search results
401 # Useful to discover content outside of your instance
402 # If you enable search_index, you must enable remote_uri search for users
403 # If you do not enable remote_uri search for anonymous user, your instance will redirect the user on the origin instance
404 # instead of loading the video locally
405 search_index:
406 enabled: false
407 # URL of the search index, that should use the same search API and routes
408 # than PeerTube: https://docs.joinpeertube.org/api-rest-reference.html
409 # You should deploy your own with https://framagit.org/framasoft/peertube/search-index,
410 # and can use https://search.joinpeertube.org/ for tests, but keep in mind the latter is an unmoderated search index
411 url: ''
412 # You can disable local search, so users only use the search index
413 disable_local_search: false
414 # If you did not disable local search, you can decide to use the search index by default
415 is_default_search: false
diff --git a/config/test.yaml b/config/test.yaml
index 74979f3a7..da34ccd03 100644
--- a/config/test.yaml
+++ b/config/test.yaml
@@ -98,3 +98,25 @@ instance:
98plugins: 98plugins:
99 index: 99 index:
100 check_latest_versions_interval: '10 minutes' 100 check_latest_versions_interval: '10 minutes'
101
102search:
103 # Add ability to fetch remote videos/actors by their URI, that may not be federated with your instance
104 # If enabled, the associated group will be able to "escape" from the instance follows
105 # That means they will be able to follow channels, watch videos, list videos of non followed instances
106 remote_uri:
107 users: true
108 anonymous: false
109
110 # Use a third party index instead of your local index, only for search results
111 # Useful to discover content outside of your instance
112 search_index:
113 enabled: true
114 # URL of the search index, that should use the same search API and routes
115 # than PeerTube: https://docs.joinpeertube.org/api-rest-reference.html
116 # You should deploy your own with https://framagit.org/framasoft/peertube/search-index,
117 # and can use https://search.joinpeertube.org/ for tests, but keep in mind the latter is an unmoderated search index
118 url: 'http://localhost:3234'
119 # You can disable local search, so users only use the search index
120 disable_local_search: false
121 # If you did not disable local search, you can decide to use the search index by default
122 is_default_search: true