aboutsummaryrefslogtreecommitdiffhomepage
path: root/config
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-07-06 15:44:14 +0200
committerChocobozzz <me@florianbigard.com>2022-07-06 16:12:17 +0200
commit9452d4fd3321148fb80b64a67bd9983fee6c208e (patch)
tree62ad9be8d3f4bfcf63196274ad4b736372c05f2c /config
parent630d0a1bf5897fff203cb07e426223f55dcc882d (diff)
downloadPeerTube-9452d4fd3321148fb80b64a67bd9983fee6c208e.tar.gz
PeerTube-9452d4fd3321148fb80b64a67bd9983fee6c208e.tar.zst
PeerTube-9452d4fd3321148fb80b64a67bd9983fee6c208e.zip
/!\ Use a dedicated config file for development
It means you have to replace NODE_ENV=test to NODE_ENV=dev if you use it npm run dev:* commands are already updated
Diffstat (limited to 'config')
-rw-r--r--config/dev.yaml105
-rw-r--r--config/test.yaml22
2 files changed, 105 insertions, 22 deletions
diff --git a/config/dev.yaml b/config/dev.yaml
new file mode 100644
index 000000000..15e239b29
--- /dev/null
+++ b/config/dev.yaml
@@ -0,0 +1,105 @@
1listen:
2 hostname: '::'
3 port: 9000
4
5webserver:
6 https: false
7
8database:
9 hostname: 'localhost'
10 port: 5432
11
12redis:
13 hostname: 'localhost'
14
15smtp:
16 hostname: null
17 port: 1025
18 tls: false
19 disable_starttls: true
20 from_address: 'test-admin@localhost'
21 username: null
22 password: null
23
24log:
25 level: 'debug'
26
27contact_form:
28 enabled: true
29
30peertube:
31 check_latest_version:
32 enabled: false
33
34redundancy:
35 videos:
36 check_interval: '5 minutes'
37 strategies:
38 -
39 size: '1000MB'
40 min_lifetime: '10 minutes'
41 strategy: 'most-views'
42 -
43 size: '1000MB'
44 min_lifetime: '10 minutes'
45 strategy: 'trending'
46 -
47 size: '1000MB'
48 min_lifetime: '10 minutes'
49 strategy: 'recently-added'
50 min_views: 1
51
52cache:
53 previews:
54 size: 10
55 captions:
56 size: 10
57 torrents:
58 size: 10
59
60signup:
61 enabled: true
62 requires_email_verification: false
63
64live:
65 enabled: true
66
67 allow_replay: true
68
69 transcoding:
70 enabled: true
71 threads: 2
72
73 resolutions:
74 360p: true
75 720p: true
76
77import:
78 videos:
79 concurrency: 2
80 http:
81 enabled: true
82 torrent:
83 enabled: true
84
85instance:
86 default_nsfw_policy: 'display'
87
88plugins:
89 index:
90 check_latest_versions_interval: '10 minutes'
91
92federation:
93 videos:
94 cleanup_remote_interactions: false
95
96views:
97 videos:
98 remote:
99 max_age: -1
100
101geo_ip:
102 enabled: true
103
104video_studio:
105 enabled: true
diff --git a/config/test.yaml b/config/test.yaml
index 8118c479b..3e08f0ac8 100644
--- a/config/test.yaml
+++ b/config/test.yaml
@@ -133,28 +133,6 @@ plugins:
133 index: 133 index:
134 check_latest_versions_interval: '10 minutes' 134 check_latest_versions_interval: '10 minutes'
135 135
136search:
137 # Add ability to fetch remote videos/actors by their URI, that may not be federated with your instance
138 # If enabled, the associated group will be able to "escape" from the instance follows
139 # That means they will be able to follow channels, watch videos, list videos of non followed instances
140 remote_uri:
141 users: true
142 anonymous: false
143
144 # Use a third party index instead of your local index, only for search results
145 # Useful to discover content outside of your instance
146 search_index:
147 enabled: false
148 # URL of the search index, that should use the same search API and routes
149 # than PeerTube: https://docs.joinpeertube.org/api-rest-reference.html
150 # You should deploy your own with https://framagit.org/framasoft/peertube/search-index,
151 # and can use https://search.joinpeertube.org/ for tests, but keep in mind the latter is an unmoderated search index
152 url: 'http://localhost:3234'
153 # You can disable local search, so users only use the search index
154 disable_local_search: false
155 # If you did not disable local search, you can decide to use the search index by default
156 is_default_search: true
157
158federation: 136federation:
159 videos: 137 videos:
160 federate_unlisted: true 138 federate_unlisted: true