diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/default.yaml | 15 | ||||
-rw-r--r-- | config/production.yaml.example | 13 | ||||
-rw-r--r-- | config/test-1.yaml | 2 | ||||
-rw-r--r-- | config/test-2.yaml | 3 | ||||
-rw-r--r-- | config/test-3.yaml | 2 | ||||
-rw-r--r-- | config/test-4.yaml | 2 | ||||
-rw-r--r-- | config/test-5.yaml | 2 | ||||
-rw-r--r-- | config/test-6.yaml | 2 | ||||
-rw-r--r-- | config/test.yaml | 6 |
9 files changed, 43 insertions, 4 deletions
diff --git a/config/default.yaml b/config/default.yaml index 257ec7ed1..e16b8c352 100644 --- a/config/default.yaml +++ b/config/default.yaml | |||
@@ -45,8 +45,10 @@ smtp: | |||
45 | 45 | ||
46 | # From the project root directory | 46 | # From the project root directory |
47 | storage: | 47 | storage: |
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 | redundancy: 'storage/redundancy/' | ||
50 | logs: 'storage/logs/' | 52 | logs: 'storage/logs/' |
51 | previews: 'storage/previews/' | 53 | previews: 'storage/previews/' |
52 | thumbnails: 'storage/thumbnails/' | 54 | thumbnails: 'storage/thumbnails/' |
@@ -75,7 +77,7 @@ trending: | |||
75 | redundancy: | 77 | redundancy: |
76 | videos: | 78 | videos: |
77 | check_interval: '1 hour' # How often you want to check new videos to cache | 79 | check_interval: '1 hour' # How often you want to check new videos to cache |
78 | strategies: | 80 | strategies: # Just uncomment strategies you want |
79 | # - | 81 | # - |
80 | # size: '10GB' | 82 | # size: '10GB' |
81 | # # Minimum time the video must remain in the cache. Only accept values > 10 hours (to not overload remote instances) | 83 | # # Minimum time the video must remain in the cache. Only accept values > 10 hours (to not overload remote instances) |
@@ -100,7 +102,12 @@ cache: | |||
100 | size: 500 # Max number of video captions/subtitles you want to cache | 102 | size: 500 # Max number of video captions/subtitles you want to cache |
101 | 103 | ||
102 | admin: | 104 | admin: |
103 | email: 'admin@example.com' # Your personal email as administrator | 105 | # Used to generate the root user at first startup |
106 | # And to receive emails from the contact form | ||
107 | email: 'admin@example.com' | ||
108 | |||
109 | contact_form: | ||
110 | enabled: true | ||
104 | 111 | ||
105 | signup: | 112 | signup: |
106 | enabled: false | 113 | enabled: false |
@@ -122,6 +129,8 @@ user: | |||
122 | # Please, do not disable transcoding since many uploaded videos will not work | 129 | # Please, do not disable transcoding since many uploaded videos will not work |
123 | transcoding: | 130 | transcoding: |
124 | enabled: true | 131 | enabled: true |
132 | # Allow your users to upload .mkv, .mov, .avi, .flv videos | ||
133 | allow_additional_extensions: true | ||
125 | threads: 1 | 134 | threads: 1 |
126 | resolutions: # Only created if the original video has a higher resolution, uses more storage! | 135 | resolutions: # Only created if the original video has a higher resolution, uses more storage! |
127 | 240p: false | 136 | 240p: false |
@@ -159,6 +168,8 @@ instance: | |||
159 | "# 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:" | 168 | "# 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:" |
160 | 169 | ||
161 | services: | 170 | services: |
171 | # You can provide a reporting endpoint for Content Security Policy violations | ||
172 | csp-logger: | ||
162 | # Cards configuration to format video in Twitter | 173 | # Cards configuration to format video in Twitter |
163 | twitter: | 174 | twitter: |
164 | username: '@Chocobozzz' # Indicates the Twitter account for the website or platform on which the content was published | 175 | 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 ac15fc736..661eac0d5 100644 --- a/config/production.yaml.example +++ b/config/production.yaml.example | |||
@@ -46,8 +46,10 @@ smtp: | |||
46 | 46 | ||
47 | # From the project root directory | 47 | # From the project root directory |
48 | storage: | 48 | storage: |
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 | redundancy: '/var/www/peertube/storage/videos/' | ||
51 | logs: '/var/www/peertube/storage/logs/' | 53 | logs: '/var/www/peertube/storage/logs/' |
52 | previews: '/var/www/peertube/storage/previews/' | 54 | previews: '/var/www/peertube/storage/previews/' |
53 | thumbnails: '/var/www/peertube/storage/thumbnails/' | 55 | thumbnails: '/var/www/peertube/storage/thumbnails/' |
@@ -76,7 +78,7 @@ trending: | |||
76 | redundancy: | 78 | redundancy: |
77 | videos: | 79 | videos: |
78 | 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 |
79 | strategies: | 81 | strategies: # Just uncomment strategies you want |
80 | # - | 82 | # - |
81 | # size: '10GB' | 83 | # size: '10GB' |
82 | # # 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) |
@@ -113,8 +115,13 @@ cache: | |||
113 | size: 500 # Max number of video captions/subtitles you want to cache | 115 | size: 500 # Max number of video captions/subtitles you want to cache |
114 | 116 | ||
115 | admin: | 117 | admin: |
118 | # Used to generate the root user at first startup | ||
119 | # And to receive emails from the contact form | ||
116 | email: 'admin@example.com' | 120 | email: 'admin@example.com' |
117 | 121 | ||
122 | contact_form: | ||
123 | enabled: true | ||
124 | |||
118 | signup: | 125 | signup: |
119 | enabled: false | 126 | enabled: false |
120 | limit: 10 # When the limit is reached, registrations are disabled. -1 == unlimited | 127 | limit: 10 # When the limit is reached, registrations are disabled. -1 == unlimited |
@@ -135,6 +142,8 @@ user: | |||
135 | # Please, do not disable transcoding since many uploaded videos will not work | 142 | # Please, do not disable transcoding since many uploaded videos will not work |
136 | transcoding: | 143 | transcoding: |
137 | enabled: true | 144 | enabled: true |
145 | # Allow your users to upload .mkv, .mov, .avi, .flv videos | ||
146 | allow_additional_extensions: true | ||
138 | threads: 1 | 147 | threads: 1 |
139 | resolutions: # Only created if the original video has a higher resolution, uses more storage! | 148 | resolutions: # Only created if the original video has a higher resolution, uses more storage! |
140 | 240p: false | 149 | 240p: false |
@@ -173,6 +182,8 @@ instance: | |||
173 | "# 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:" | 182 | "# 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:" |
174 | 183 | ||
175 | services: | 184 | services: |
185 | # You can provide a reporting endpoint for Content Security Policy violations | ||
186 | csp-logger: | ||
176 | # Cards configuration to format video in Twitter | 187 | # Cards configuration to format video in Twitter |
177 | twitter: | 188 | twitter: |
178 | username: '@Chocobozzz' # Indicates the Twitter account for the website or platform on which the content was published | 189 | 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..8f4f66d2a 100644 --- a/config/test-1.yaml +++ b/config/test-1.yaml | |||
@@ -10,8 +10,10 @@ database: | |||
10 | 10 | ||
11 | # From the project root directory | 11 | # From the project root directory |
12 | storage: | 12 | storage: |
13 | tmp: 'test1/tmp/' | ||
13 | avatars: 'test1/avatars/' | 14 | avatars: 'test1/avatars/' |
14 | videos: 'test1/videos/' | 15 | videos: 'test1/videos/' |
16 | redundancy: 'test1/redundancy/' | ||
15 | logs: 'test1/logs/' | 17 | logs: 'test1/logs/' |
16 | previews: 'test1/previews/' | 18 | previews: 'test1/previews/' |
17 | thumbnails: 'test1/thumbnails/' | 19 | thumbnails: 'test1/thumbnails/' |
diff --git a/config/test-2.yaml b/config/test-2.yaml index 8c77bf581..b6d319394 100644 --- a/config/test-2.yaml +++ b/config/test-2.yaml | |||
@@ -10,8 +10,10 @@ database: | |||
10 | 10 | ||
11 | # From the project root directory | 11 | # From the project root directory |
12 | storage: | 12 | storage: |
13 | tmp: 'test2/tmp/' | ||
13 | avatars: 'test2/avatars/' | 14 | avatars: 'test2/avatars/' |
14 | videos: 'test2/videos/' | 15 | videos: 'test2/videos/' |
16 | redundancy: 'test2/redundancy/' | ||
15 | logs: 'test2/logs/' | 17 | logs: 'test2/logs/' |
16 | previews: 'test2/previews/' | 18 | previews: 'test2/previews/' |
17 | thumbnails: 'test2/thumbnails/' | 19 | thumbnails: 'test2/thumbnails/' |
@@ -27,3 +29,4 @@ signup: | |||
27 | 29 | ||
28 | transcoding: | 30 | transcoding: |
29 | enabled: true | 31 | enabled: true |
32 | allow_additional_extensions: true | ||
diff --git a/config/test-3.yaml b/config/test-3.yaml index 82d89567a..934401eb0 100644 --- a/config/test-3.yaml +++ b/config/test-3.yaml | |||
@@ -10,8 +10,10 @@ database: | |||
10 | 10 | ||
11 | # From the project root directory | 11 | # From the project root directory |
12 | storage: | 12 | storage: |
13 | tmp: 'test3/tmp/' | ||
13 | avatars: 'test3/avatars/' | 14 | avatars: 'test3/avatars/' |
14 | videos: 'test3/videos/' | 15 | videos: 'test3/videos/' |
16 | redundancy: 'test3/redundancy/' | ||
15 | logs: 'test3/logs/' | 17 | logs: 'test3/logs/' |
16 | previews: 'test3/previews/' | 18 | previews: 'test3/previews/' |
17 | thumbnails: 'test3/thumbnails/' | 19 | thumbnails: 'test3/thumbnails/' |
diff --git a/config/test-4.yaml b/config/test-4.yaml index 1aa56d041..ee99b250b 100644 --- a/config/test-4.yaml +++ b/config/test-4.yaml | |||
@@ -10,8 +10,10 @@ database: | |||
10 | 10 | ||
11 | # From the project root directory | 11 | # From the project root directory |
12 | storage: | 12 | storage: |
13 | tmp: 'test4/tmp/' | ||
13 | avatars: 'test4/avatars/' | 14 | avatars: 'test4/avatars/' |
14 | videos: 'test4/videos/' | 15 | videos: 'test4/videos/' |
16 | redundancy: 'test4/redundancy/' | ||
15 | logs: 'test4/logs/' | 17 | logs: 'test4/logs/' |
16 | previews: 'test4/previews/' | 18 | previews: 'test4/previews/' |
17 | thumbnails: 'test4/thumbnails/' | 19 | thumbnails: 'test4/thumbnails/' |
diff --git a/config/test-5.yaml b/config/test-5.yaml index 5f1c2f583..e2662bdd9 100644 --- a/config/test-5.yaml +++ b/config/test-5.yaml | |||
@@ -10,8 +10,10 @@ database: | |||
10 | 10 | ||
11 | # From the project root directory | 11 | # From the project root directory |
12 | storage: | 12 | storage: |
13 | tmp: 'test5/tmp/' | ||
13 | avatars: 'test5/avatars/' | 14 | avatars: 'test5/avatars/' |
14 | videos: 'test5/videos/' | 15 | videos: 'test5/videos/' |
16 | redundancy: 'test5/redundancy/' | ||
15 | logs: 'test5/logs/' | 17 | logs: 'test5/logs/' |
16 | previews: 'test5/previews/' | 18 | previews: 'test5/previews/' |
17 | thumbnails: 'test5/thumbnails/' | 19 | thumbnails: 'test5/thumbnails/' |
diff --git a/config/test-6.yaml b/config/test-6.yaml index 719629844..ad39c6a9f 100644 --- a/config/test-6.yaml +++ b/config/test-6.yaml | |||
@@ -10,8 +10,10 @@ database: | |||
10 | 10 | ||
11 | # From the project root directory | 11 | # From the project root directory |
12 | storage: | 12 | storage: |
13 | tmp: 'test6/tmp/' | ||
13 | avatars: 'test6/avatars/' | 14 | avatars: 'test6/avatars/' |
14 | videos: 'test6/videos/' | 15 | videos: 'test6/videos/' |
16 | redundancy: 'test6/redundancy/' | ||
15 | logs: 'test6/logs/' | 17 | logs: 'test6/logs/' |
16 | previews: 'test6/previews/' | 18 | previews: 'test6/previews/' |
17 | thumbnails: 'test6/thumbnails/' | 19 | thumbnails: 'test6/thumbnails/' |
diff --git a/config/test.yaml b/config/test.yaml index 9c051fabc..aba5dd73c 100644 --- a/config/test.yaml +++ b/config/test.yaml | |||
@@ -21,6 +21,9 @@ smtp: | |||
21 | log: | 21 | log: |
22 | level: 'debug' | 22 | level: 'debug' |
23 | 23 | ||
24 | contact_form: | ||
25 | enabled: true | ||
26 | |||
24 | redundancy: | 27 | redundancy: |
25 | videos: | 28 | videos: |
26 | check_interval: '10 minutes' | 29 | check_interval: '10 minutes' |
@@ -51,6 +54,7 @@ signup: | |||
51 | 54 | ||
52 | transcoding: | 55 | transcoding: |
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 |
@@ -67,4 +71,4 @@ import: | |||
67 | enabled: true | 71 | enabled: true |
68 | 72 | ||
69 | instance: | 73 | instance: |
70 | default_nsfw_policy: 'display' \ No newline at end of file | 74 | default_nsfw_policy: 'display' |