aboutsummaryrefslogtreecommitdiffhomepage
path: root/config
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-02-11 11:52:34 +0100
committerChocobozzz <me@florianbigard.com>2019-02-11 11:52:34 +0100
commit88108880bbdba473cfe36ecbebc1c3c4f972e102 (patch)
treeb242efb3b4f0d7e49d88f2d1f2063b5b3b0489c0 /config
parent53a94c7cfa8368da4cd248d65df8346905938f0c (diff)
parent9b712a2017e4ab3cf12cd6bd58278905520159d0 (diff)
downloadPeerTube-88108880bbdba473cfe36ecbebc1c3c4f972e102.tar.gz
PeerTube-88108880bbdba473cfe36ecbebc1c3c4f972e102.tar.zst
PeerTube-88108880bbdba473cfe36ecbebc1c3c4f972e102.zip
Merge branch 'develop' into pr/1217
Diffstat (limited to 'config')
-rw-r--r--config/default.yaml30
-rw-r--r--config/production.yaml.example28
-rw-r--r--config/test-1.yaml3
-rw-r--r--config/test-2.yaml4
-rw-r--r--config/test-3.yaml3
-rw-r--r--config/test-4.yaml3
-rw-r--r--config/test-5.yaml3
-rw-r--r--config/test-6.yaml3
-rw-r--r--config/test.yaml10
9 files changed, 80 insertions, 7 deletions
diff --git a/config/default.yaml b/config/default.yaml
index 0d7d948c2..5a83b271e 100644
--- a/config/default.yaml
+++ b/config/default.yaml
@@ -45,8 +45,11 @@ smtp:
45 45
46# From the project root directory 46# From the project root directory
47storage: 47storage:
48 tmp: 'storage/tmp/' # Used to download data (imports etc), store uploaded files before processing...
48 avatars: 'storage/avatars/' 49 avatars: 'storage/avatars/'
49 videos: 'storage/videos/' 50 videos: 'storage/videos/'
51 playlists: 'storage/playlists/'
52 redundancy: 'storage/redundancy/'
50 logs: 'storage/logs/' 53 logs: 'storage/logs/'
51 previews: 'storage/previews/' 54 previews: 'storage/previews/'
52 thumbnails: 'storage/thumbnails/' 55 thumbnails: 'storage/thumbnails/'
@@ -58,7 +61,10 @@ log:
58 level: 'info' # debug/info/warning/error 61 level: 'info' # debug/info/warning/error
59 62
60search: 63search:
61 remote_uri: # Add ability to fetch remote videos/actors by their URI, that may not be federated with your instance 64 # Add ability to fetch remote videos/actors by their URI, that may not be federated with your instance
65 # If enabled, the associated group will be able to "escape" from the instance follows
66 # That means they will be able to follow channels, watch videos, list videos of non followed instances
67 remote_uri:
62 users: true 68 users: true
63 anonymous: false 69 anonymous: false
64 70
@@ -72,7 +78,7 @@ trending:
72redundancy: 78redundancy:
73 videos: 79 videos:
74 check_interval: '1 hour' # How often you want to check new videos to cache 80 check_interval: '1 hour' # How often you want to check new videos to cache
75 strategies: 81 strategies: # Just uncomment strategies you want
76# - 82# -
77# size: '10GB' 83# size: '10GB'
78# # Minimum time the video must remain in the cache. Only accept values > 10 hours (to not overload remote instances) 84# # Minimum time the video must remain in the cache. Only accept values > 10 hours (to not overload remote instances)
@@ -97,7 +103,12 @@ cache:
97 size: 500 # Max number of video captions/subtitles you want to cache 103 size: 500 # Max number of video captions/subtitles you want to cache
98 104
99admin: 105admin:
100 email: 'admin@example.com' # Your personal email as administrator 106 # Used to generate the root user at first startup
107 # And to receive emails from the contact form
108 email: 'admin@example.com'
109
110contact_form:
111 enabled: true
101 112
102signup: 113signup:
103 enabled: false 114 enabled: false
@@ -119,6 +130,8 @@ user:
119# Please, do not disable transcoding since many uploaded videos will not work 130# Please, do not disable transcoding since many uploaded videos will not work
120transcoding: 131transcoding:
121 enabled: true 132 enabled: true
133 # Allow your users to upload .mkv, .mov, .avi, .flv videos
134 allow_additional_extensions: true
122 threads: 1 135 threads: 1
123 resolutions: # Only created if the original video has a higher resolution, uses more storage! 136 resolutions: # Only created if the original video has a higher resolution, uses more storage!
124 240p: false 137 240p: false
@@ -126,6 +139,15 @@ transcoding:
126 480p: false 139 480p: false
127 720p: false 140 720p: false
128 1080p: false 141 1080p: false
142 # /!\ EXPERIMENTAL /!\
143 # /!\ Requires ffmpeg >= 3.4
144 # Generate HLS playlist/segments. Better playback than with WebTorrent:
145 # * Resolution change is smoother
146 # * Faster playback in particular with long videos
147 # * More stable playback (less bugs/infinite loading)
148 # /!\ Multiply videos storage by two /!\
149 hls:
150 enabled: false
129 151
130import: 152import:
131 # Add ability for your users to import remote videos (from YouTube, torrent...) 153 # Add ability for your users to import remote videos (from YouTube, torrent...)
@@ -156,6 +178,8 @@ instance:
156 "# If you would like to report a security issue\n# you may report it to:\nContact: https://github.com/Chocobozzz/PeerTube/blob/develop/SECURITY.md\nContact: mailto:" 178 "# If you would like to report a security issue\n# you may report it to:\nContact: https://github.com/Chocobozzz/PeerTube/blob/develop/SECURITY.md\nContact: mailto:"
157 179
158services: 180services:
181 # You can provide a reporting endpoint for Content Security Policy violations
182 csp-logger:
159 # Cards configuration to format video in Twitter 183 # Cards configuration to format video in Twitter
160 twitter: 184 twitter:
161 username: '@Chocobozzz' # Indicates the Twitter account for the website or platform on which the content was published 185 username: '@Chocobozzz' # Indicates the Twitter account for the website or platform on which the content was published
diff --git a/config/production.yaml.example b/config/production.yaml.example
index f9da8e0dd..c54e1a516 100644
--- a/config/production.yaml.example
+++ b/config/production.yaml.example
@@ -46,8 +46,11 @@ smtp:
46 46
47# From the project root directory 47# From the project root directory
48storage: 48storage:
49 tmp: '/var/www/peertube/storage/tmp/' # Used to download data (imports etc), store uploaded files before processing...
49 avatars: '/var/www/peertube/storage/avatars/' 50 avatars: '/var/www/peertube/storage/avatars/'
50 videos: '/var/www/peertube/storage/videos/' 51 videos: '/var/www/peertube/storage/videos/'
52 playlists: '/var/www/peertube/storage/playlists/'
53 redundancy: '/var/www/peertube/storage/videos/'
51 logs: '/var/www/peertube/storage/logs/' 54 logs: '/var/www/peertube/storage/logs/'
52 previews: '/var/www/peertube/storage/previews/' 55 previews: '/var/www/peertube/storage/previews/'
53 thumbnails: '/var/www/peertube/storage/thumbnails/' 56 thumbnails: '/var/www/peertube/storage/thumbnails/'
@@ -59,7 +62,10 @@ log:
59 level: 'info' # debug/info/warning/error 62 level: 'info' # debug/info/warning/error
60 63
61search: 64search:
62 remote_uri: # Add ability to search remote videos/actors by URI, that may not be federated with your instance 65 # Add ability to fetch remote videos/actors by their URI, that may not be federated with your instance
66 # If enabled, the associated group will be able to "escape" from the instance follows
67 # That means they will be able to follow channels, watch videos, list videos of non followed instances
68 remote_uri:
63 users: true 69 users: true
64 anonymous: false 70 anonymous: false
65 71
@@ -73,7 +79,7 @@ trending:
73redundancy: 79redundancy:
74 videos: 80 videos:
75 check_interval: '1 hour' # How often you want to check new videos to cache 81 check_interval: '1 hour' # How often you want to check new videos to cache
76 strategies: 82 strategies: # Just uncomment strategies you want
77# - 83# -
78# size: '10GB' 84# size: '10GB'
79# # Minimum time the video must remain in the cache. Only accept values > 10 hours (to not overload remote instances) 85# # Minimum time the video must remain in the cache. Only accept values > 10 hours (to not overload remote instances)
@@ -110,8 +116,13 @@ cache:
110 size: 500 # Max number of video captions/subtitles you want to cache 116 size: 500 # Max number of video captions/subtitles you want to cache
111 117
112admin: 118admin:
119 # Used to generate the root user at first startup
120 # And to receive emails from the contact form
113 email: 'admin@example.com' 121 email: 'admin@example.com'
114 122
123contact_form:
124 enabled: true
125
115signup: 126signup:
116 enabled: false 127 enabled: false
117 limit: 10 # When the limit is reached, registrations are disabled. -1 == unlimited 128 limit: 10 # When the limit is reached, registrations are disabled. -1 == unlimited
@@ -132,6 +143,8 @@ user:
132# Please, do not disable transcoding since many uploaded videos will not work 143# Please, do not disable transcoding since many uploaded videos will not work
133transcoding: 144transcoding:
134 enabled: true 145 enabled: true
146 # Allow your users to upload .mkv, .mov, .avi, .flv videos
147 allow_additional_extensions: true
135 threads: 1 148 threads: 1
136 resolutions: # Only created if the original video has a higher resolution, uses more storage! 149 resolutions: # Only created if the original video has a higher resolution, uses more storage!
137 240p: false 150 240p: false
@@ -139,6 +152,15 @@ transcoding:
139 480p: false 152 480p: false
140 720p: false 153 720p: false
141 1080p: false 154 1080p: false
155 # /!\ EXPERIMENTAL /!\
156 # /!\ Requires ffmpeg >= 3.4
157 # Generate HLS playlist/segments. Better playback than with WebTorrent:
158 # * Resolution change is smoother
159 # * Faster playback in particular with long videos
160 # * More stable playback (less bugs/infinite loading)
161 # /!\ Multiply videos storage by two /!\
162 hls:
163 enabled: false
142 164
143import: 165import:
144 # Add ability for your users to import remote videos (from YouTube, torrent...) 166 # Add ability for your users to import remote videos (from YouTube, torrent...)
@@ -170,6 +192,8 @@ instance:
170 "# If you would like to report a security issue\n# you may report it to:\nContact: https://github.com/Chocobozzz/PeerTube/blob/develop/SECURITY.md\nContact: mailto:" 192 "# If you would like to report a security issue\n# you may report it to:\nContact: https://github.com/Chocobozzz/PeerTube/blob/develop/SECURITY.md\nContact: mailto:"
171 193
172services: 194services:
195 # You can provide a reporting endpoint for Content Security Policy violations
196 csp-logger:
173 # Cards configuration to format video in Twitter 197 # Cards configuration to format video in Twitter
174 twitter: 198 twitter:
175 username: '@Chocobozzz' # Indicates the Twitter account for the website or platform on which the content was published 199 username: '@Chocobozzz' # Indicates the Twitter account for the website or platform on which the content was published
diff --git a/config/test-1.yaml b/config/test-1.yaml
index 503bbc661..fb69818f3 100644
--- a/config/test-1.yaml
+++ b/config/test-1.yaml
@@ -10,8 +10,11 @@ database:
10 10
11# From the project root directory 11# From the project root directory
12storage: 12storage:
13 tmp: 'test1/tmp/'
13 avatars: 'test1/avatars/' 14 avatars: 'test1/avatars/'
14 videos: 'test1/videos/' 15 videos: 'test1/videos/'
16 playlists: 'test1/playlists/'
17 redundancy: 'test1/redundancy/'
15 logs: 'test1/logs/' 18 logs: 'test1/logs/'
16 previews: 'test1/previews/' 19 previews: 'test1/previews/'
17 thumbnails: 'test1/thumbnails/' 20 thumbnails: 'test1/thumbnails/'
diff --git a/config/test-2.yaml b/config/test-2.yaml
index 8c77bf581..5caddaaa8 100644
--- a/config/test-2.yaml
+++ b/config/test-2.yaml
@@ -10,8 +10,11 @@ database:
10 10
11# From the project root directory 11# From the project root directory
12storage: 12storage:
13 tmp: 'test2/tmp/'
13 avatars: 'test2/avatars/' 14 avatars: 'test2/avatars/'
14 videos: 'test2/videos/' 15 videos: 'test2/videos/'
16 playlists: 'test2/playlists/'
17 redundancy: 'test2/redundancy/'
15 logs: 'test2/logs/' 18 logs: 'test2/logs/'
16 previews: 'test2/previews/' 19 previews: 'test2/previews/'
17 thumbnails: 'test2/thumbnails/' 20 thumbnails: 'test2/thumbnails/'
@@ -27,3 +30,4 @@ signup:
27 30
28transcoding: 31transcoding:
29 enabled: true 32 enabled: true
33 allow_additional_extensions: true
diff --git a/config/test-3.yaml b/config/test-3.yaml
index 82d89567a..fac7ebee1 100644
--- a/config/test-3.yaml
+++ b/config/test-3.yaml
@@ -10,8 +10,11 @@ database:
10 10
11# From the project root directory 11# From the project root directory
12storage: 12storage:
13 tmp: 'test3/tmp/'
13 avatars: 'test3/avatars/' 14 avatars: 'test3/avatars/'
14 videos: 'test3/videos/' 15 videos: 'test3/videos/'
16 playlists: 'test3/playlists/'
17 redundancy: 'test3/redundancy/'
15 logs: 'test3/logs/' 18 logs: 'test3/logs/'
16 previews: 'test3/previews/' 19 previews: 'test3/previews/'
17 thumbnails: 'test3/thumbnails/' 20 thumbnails: 'test3/thumbnails/'
diff --git a/config/test-4.yaml b/config/test-4.yaml
index 1aa56d041..33033773a 100644
--- a/config/test-4.yaml
+++ b/config/test-4.yaml
@@ -10,8 +10,11 @@ database:
10 10
11# From the project root directory 11# From the project root directory
12storage: 12storage:
13 tmp: 'test4/tmp/'
13 avatars: 'test4/avatars/' 14 avatars: 'test4/avatars/'
14 videos: 'test4/videos/' 15 videos: 'test4/videos/'
16 playlists: 'test4/playlists/'
17 redundancy: 'test4/redundancy/'
15 logs: 'test4/logs/' 18 logs: 'test4/logs/'
16 previews: 'test4/previews/' 19 previews: 'test4/previews/'
17 thumbnails: 'test4/thumbnails/' 20 thumbnails: 'test4/thumbnails/'
diff --git a/config/test-5.yaml b/config/test-5.yaml
index 5f1c2f583..d365b6f2b 100644
--- a/config/test-5.yaml
+++ b/config/test-5.yaml
@@ -10,8 +10,11 @@ database:
10 10
11# From the project root directory 11# From the project root directory
12storage: 12storage:
13 tmp: 'test5/tmp/'
13 avatars: 'test5/avatars/' 14 avatars: 'test5/avatars/'
14 videos: 'test5/videos/' 15 videos: 'test5/videos/'
16 playlists: 'test5/playlists/'
17 redundancy: 'test5/redundancy/'
15 logs: 'test5/logs/' 18 logs: 'test5/logs/'
16 previews: 'test5/previews/' 19 previews: 'test5/previews/'
17 thumbnails: 'test5/thumbnails/' 20 thumbnails: 'test5/thumbnails/'
diff --git a/config/test-6.yaml b/config/test-6.yaml
index 719629844..44541c003 100644
--- a/config/test-6.yaml
+++ b/config/test-6.yaml
@@ -10,8 +10,11 @@ database:
10 10
11# From the project root directory 11# From the project root directory
12storage: 12storage:
13 tmp: 'test6/tmp/'
13 avatars: 'test6/avatars/' 14 avatars: 'test6/avatars/'
14 videos: 'test6/videos/' 15 videos: 'test6/videos/'
16 playlists: 'test6/playlists/'
17 redundancy: 'test6/redundancy/'
15 logs: 'test6/logs/' 18 logs: 'test6/logs/'
16 previews: 'test6/previews/' 19 previews: 'test6/previews/'
17 thumbnails: 'test6/thumbnails/' 20 thumbnails: 'test6/thumbnails/'
diff --git a/config/test.yaml b/config/test.yaml
index 04c999966..682530840 100644
--- a/config/test.yaml
+++ b/config/test.yaml
@@ -1,5 +1,5 @@
1listen: 1listen:
2 listen: '0.0.0.0' 2 hostname: '0.0.0.0'
3 port: 9000 3 port: 9000
4 4
5webserver: 5webserver:
@@ -21,6 +21,9 @@ smtp:
21log: 21log:
22 level: 'debug' 22 level: 'debug'
23 23
24contact_form:
25 enabled: true
26
24redundancy: 27redundancy:
25 videos: 28 videos:
26 check_interval: '10 minutes' 29 check_interval: '10 minutes'
@@ -51,6 +54,7 @@ signup:
51 54
52transcoding: 55transcoding:
53 enabled: true 56 enabled: true
57 allow_additional_extensions: false
54 threads: 2 58 threads: 2
55 resolutions: 59 resolutions:
56 240p: true 60 240p: true
@@ -58,6 +62,8 @@ transcoding:
58 480p: true 62 480p: true
59 720p: true 63 720p: true
60 1080p: true 64 1080p: true
65 hls:
66 enabled: true
61 67
62import: 68import:
63 videos: 69 videos:
@@ -67,4 +73,4 @@ import:
67 enabled: true 73 enabled: true
68 74
69instance: 75instance:
70 default_nsfw_policy: 'display' \ No newline at end of file 76 default_nsfw_policy: 'display'