diff options
author | Chocobozzz <me@florianbigard.com> | 2021-10-22 13:56:45 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-10-22 13:56:45 +0200 |
commit | de7f11143f6d8a617f1eb15d536a3486e7e22301 (patch) | |
tree | 14a413f04acc1a3d6a5b55927e729ad367fafd98 /config | |
parent | 7f91ecbde475fcbf9e4997786b7a313ff4b8587c (diff) | |
download | PeerTube-de7f11143f6d8a617f1eb15d536a3486e7e22301.tar.gz PeerTube-de7f11143f6d8a617f1eb15d536a3486e7e22301.tar.zst PeerTube-de7f11143f6d8a617f1eb15d536a3486e7e22301.zip |
Cleanup config
Diffstat (limited to 'config')
-rw-r--r-- | config/default.yaml | 11 | ||||
-rw-r--r-- | config/production.yaml.example | 27 |
2 files changed, 26 insertions, 12 deletions
diff --git a/config/default.yaml b/config/default.yaml index ec9622477..f545382c8 100644 --- a/config/default.yaml +++ b/config/default.yaml | |||
@@ -208,8 +208,8 @@ security: | |||
208 | tracker: | 208 | tracker: |
209 | # If you disable the tracker, you disable the P2P aspect of PeerTube | 209 | # If you disable the tracker, you disable the P2P aspect of PeerTube |
210 | enabled: true | 210 | enabled: true |
211 | # Only handle requests on your videos. | 211 | # Only handle requests on your videos |
212 | # If you set this to false it means you have a public tracker. | 212 | # If you set this to false it means you have a public tracker |
213 | # Then, it is possible that clients overload your instance with external torrents | 213 | # Then, it is possible that clients overload your instance with external torrents |
214 | private: true | 214 | private: true |
215 | # Reject peers that do a lot of announces (could improve privacy of TCP/UDP peers) | 215 | # Reject peers that do a lot of announces (could improve privacy of TCP/UDP peers) |
@@ -290,13 +290,14 @@ signup: | |||
290 | blacklist: [] | 290 | blacklist: [] |
291 | 291 | ||
292 | user: | 292 | user: |
293 | # Default value of maximum video BYTES the user can upload (does not take into account transcoded files). | 293 | # Default value of maximum video bytes the user can upload (does not take into account transcoded files) |
294 | # Byte format is supported ("1GB" etc) | ||
294 | # -1 == unlimited | 295 | # -1 == unlimited |
295 | video_quota: -1 | 296 | video_quota: -1 |
296 | video_quota_daily: -1 | 297 | video_quota_daily: -1 |
297 | 298 | ||
298 | # If enabled, the video will be transcoded to mp4 (x264) with `faststart` flag | 299 | # If enabled, the video will be transcoded to mp4 (x264) with `faststart` flag |
299 | # In addition, if some resolutions are enabled the mp4 video file will be transcoded to these new resolutions. | 300 | # In addition, if some resolutions are enabled the mp4 video file will be transcoded to these new resolutions |
300 | # Please, do not disable transcoding since many uploaded videos will not work | 301 | # Please, do not disable transcoding since many uploaded videos will not work |
301 | transcoding: | 302 | transcoding: |
302 | enabled: true | 303 | enabled: true |
@@ -494,7 +495,7 @@ instance: | |||
494 | robots: | | 495 | robots: | |
495 | User-agent: * | 496 | User-agent: * |
496 | Disallow: | 497 | Disallow: |
497 | # Security.txt rules. To discourage researchers from testing your instance and disable security.txt integration, set this to an empty string. | 498 | # Security.txt rules. To discourage researchers from testing your instance and disable security.txt integration, set this to an empty string |
498 | securitytxt: | 499 | securitytxt: |
499 | '# 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:' | 500 | '# 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:' |
500 | 501 | ||
diff --git a/config/production.yaml.example b/config/production.yaml.example index 588d6a3a5..2e0d029ce 100644 --- a/config/production.yaml.example +++ b/config/production.yaml.example | |||
@@ -206,8 +206,8 @@ security: | |||
206 | tracker: | 206 | tracker: |
207 | # If you disable the tracker, you disable the P2P aspect of PeerTube | 207 | # If you disable the tracker, you disable the P2P aspect of PeerTube |
208 | enabled: true | 208 | enabled: true |
209 | # Only handle requests on your videos. | 209 | # Only handle requests on your videos |
210 | # If you set this to false it means you have a public tracker. | 210 | # If you set this to false it means you have a public tracker |
211 | # Then, it is possible that clients overload your instance with external torrents | 211 | # Then, it is possible that clients overload your instance with external torrents |
212 | private: true | 212 | private: true |
213 | # Reject peers that do a lot of announces (could improve privacy of TCP/UDP peers) | 213 | # Reject peers that do a lot of announces (could improve privacy of TCP/UDP peers) |
@@ -266,10 +266,10 @@ webadmin: | |||
266 | # From this point, all the following keys can be overridden by the web interface | 266 | # From this point, all the following keys can be overridden by the web interface |
267 | # (local-production.json file). If you need to change some values, prefer to | 267 | # (local-production.json file). If you need to change some values, prefer to |
268 | # use the web interface because the configuration will be automatically | 268 | # use the web interface because the configuration will be automatically |
269 | # reloaded without any need to restart PeerTube. | 269 | # reloaded without any need to restart PeerTube |
270 | # | 270 | # |
271 | # /!\ If you already have a local-production.json file, the modification of the | 271 | # /!\ If you already have a local-production.json file, the modification of the |
272 | # following keys will have no effect /!\. | 272 | # following keys will have no effect /!\ |
273 | # | 273 | # |
274 | ############################################################################### | 274 | ############################################################################### |
275 | 275 | ||
@@ -300,13 +300,14 @@ signup: | |||
300 | blacklist: [] | 300 | blacklist: [] |
301 | 301 | ||
302 | user: | 302 | user: |
303 | # Default value of maximum video BYTES the user can upload (does not take into account transcoded files). | 303 | # Default value of maximum video bytes the user can upload (does not take into account transcoded files) |
304 | # Byte format is supported ("1GB" etc) | ||
304 | # -1 == unlimited | 305 | # -1 == unlimited |
305 | video_quota: -1 | 306 | video_quota: -1 |
306 | video_quota_daily: -1 | 307 | video_quota_daily: -1 |
307 | 308 | ||
308 | # If enabled, the video will be transcoded to mp4 (x264) with `faststart` flag | 309 | # If enabled, the video will be transcoded to mp4 (x264) with `faststart` flag |
309 | # In addition, if some resolutions are enabled the mp4 video file will be transcoded to these new resolutions. | 310 | # In addition, if some resolutions are enabled the mp4 video file will be transcoded to these new resolutions |
310 | # Please, do not disable transcoding since many uploaded videos will not work | 311 | # Please, do not disable transcoding since many uploaded videos will not work |
311 | transcoding: | 312 | transcoding: |
312 | enabled: true | 313 | enabled: true |
@@ -405,6 +406,18 @@ import: | |||
405 | http: # Classic HTTP or all sites supported by youtube-dl https://rg3.github.io/youtube-dl/supportedsites.html | 406 | http: # Classic HTTP or all sites supported by youtube-dl https://rg3.github.io/youtube-dl/supportedsites.html |
406 | enabled: false | 407 | enabled: false |
407 | 408 | ||
409 | youtube_dl_release: | ||
410 | # Direct download URL to youtube-dl binary | ||
411 | # Github releases API is also supported | ||
412 | # Examples: | ||
413 | # * https://api.github.com/repos/ytdl-org/youtube-dl/releases | ||
414 | # * https://api.github.com/repos/yt-dlp/yt-dlp/releases | ||
415 | url: 'https://yt-dl.org/downloads/latest/youtube-dl' | ||
416 | |||
417 | # youtube-dl binary name | ||
418 | # yt-dlp is also supported | ||
419 | name: 'youtube-dl' | ||
420 | |||
408 | # IPv6 is very strongly rate-limited on most sites supported by youtube-dl | 421 | # IPv6 is very strongly rate-limited on most sites supported by youtube-dl |
409 | force_ipv4: false | 422 | force_ipv4: false |
410 | 423 | ||
@@ -492,7 +505,7 @@ instance: | |||
492 | robots: | | 505 | robots: | |
493 | User-agent: * | 506 | User-agent: * |
494 | Disallow: | 507 | Disallow: |
495 | # Security.txt rules. To discourage researchers from testing your instance and disable security.txt integration, set this to an empty string. | 508 | # Security.txt rules. To discourage researchers from testing your instance and disable security.txt integration, set this to an empty string |
496 | securitytxt: | 509 | securitytxt: |
497 | '# 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:' | 510 | '# 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:' |
498 | 511 | ||