diff options
author | Chocobozzz <me@florianbigard.com> | 2018-09-20 16:24:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-20 16:24:31 +0200 |
commit | 0491173a61aed66205c017e0d7e0503ea316c144 (patch) | |
tree | ce6621597505f9518cfdf0981977d097c63f9fad /config | |
parent | 8704acf49efc770d73bf07c10468ed8c74d28a83 (diff) | |
parent | 6247b2057b792cea155a1abd9788c363ae7d2cc2 (diff) | |
download | PeerTube-0491173a61aed66205c017e0d7e0503ea316c144.tar.gz PeerTube-0491173a61aed66205c017e0d7e0503ea316c144.tar.zst PeerTube-0491173a61aed66205c017e0d7e0503ea316c144.zip |
Merge branch 'develop' into cli-wrapper
Diffstat (limited to 'config')
-rw-r--r-- | config/default.yaml | 17 | ||||
-rw-r--r-- | config/production.yaml.example | 17 | ||||
-rw-r--r-- | config/test.yaml | 15 |
3 files changed, 38 insertions, 11 deletions
diff --git a/config/default.yaml b/config/default.yaml index af29a4379..fa1fb628a 100644 --- a/config/default.yaml +++ b/config/default.yaml | |||
@@ -71,9 +71,18 @@ trending: | |||
71 | # Once you have defined your strategies, choose which instances you want to cache in admin -> manage follows -> following | 71 | # Once you have defined your strategies, choose which instances you want to cache in admin -> manage follows -> following |
72 | redundancy: | 72 | redundancy: |
73 | videos: | 73 | videos: |
74 | # - | 74 | check_interval: '1 hour' # How often you want to check new videos to cache |
75 | # size: '10GB' | 75 | strategies: |
76 | # strategy: 'most-views' # Cache videos that have the most views | 76 | # - |
77 | # size: '10GB' | ||
78 | # strategy: 'most-views' # Cache videos that have the most views | ||
79 | # - | ||
80 | # size: '10GB' | ||
81 | # strategy: 'trending' # Cache trending videos | ||
82 | # - | ||
83 | # size: '10GB' | ||
84 | # strategy: 'recently-added' # Cache recently added videos | ||
85 | # minViews: 10 # Having at least x views | ||
77 | 86 | ||
78 | cache: | 87 | cache: |
79 | previews: | 88 | previews: |
@@ -135,7 +144,7 @@ instance: | |||
135 | # Robot.txt rules. To disallow robots to crawl your instance and disallow indexation of your site, add '/' to "Disallow:' | 144 | # Robot.txt rules. To disallow robots to crawl your instance and disallow indexation of your site, add '/' to "Disallow:' |
136 | robots: | | 145 | robots: | |
137 | User-agent: * | 146 | User-agent: * |
138 | Disallow: '' | 147 | Disallow: |
139 | # Security.txt rules. To discourage researchers from testing your instance and disable security.txt integration, set this to an empty string. | 148 | # Security.txt rules. To discourage researchers from testing your instance and disable security.txt integration, set this to an empty string. |
140 | securitytxt: | 149 | securitytxt: |
141 | "# 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:" | 150 | "# 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:" |
diff --git a/config/production.yaml.example b/config/production.yaml.example index ddd43093f..4d8752206 100644 --- a/config/production.yaml.example +++ b/config/production.yaml.example | |||
@@ -72,9 +72,18 @@ trending: | |||
72 | # Once you have defined your strategies, choose which instances you want to cache in admin -> manage follows -> following | 72 | # Once you have defined your strategies, choose which instances you want to cache in admin -> manage follows -> following |
73 | redundancy: | 73 | redundancy: |
74 | videos: | 74 | videos: |
75 | # - | 75 | check_interval: '1 hour' # How often you want to check new videos to cache |
76 | # size: '10GB' | 76 | strategies: |
77 | # strategy: 'most-views' # Cache videos that have the most views | 77 | # - |
78 | # size: '10GB' | ||
79 | # strategy: 'most-views' # Cache videos that have the most views | ||
80 | # - | ||
81 | # size: '10GB' | ||
82 | # strategy: 'trending' # Cache trending videos | ||
83 | # - | ||
84 | # size: '10GB' | ||
85 | # strategy: 'recently-added' # Cache recently added videos | ||
86 | # minViews: 10 # Having at least x views | ||
78 | 87 | ||
79 | ############################################################################### | 88 | ############################################################################### |
80 | # | 89 | # |
@@ -149,7 +158,7 @@ instance: | |||
149 | # Robot.txt rules. To disallow robots to crawl your instance and disallow indexation of your site, add '/' to "Disallow:' | 158 | # Robot.txt rules. To disallow robots to crawl your instance and disallow indexation of your site, add '/' to "Disallow:' |
150 | robots: | | 159 | robots: | |
151 | User-agent: * | 160 | User-agent: * |
152 | Disallow: '' | 161 | Disallow: |
153 | # Security.txt rules. To discourage researchers from testing your instance and disable security.txt integration, set this to an empty string. | 162 | # Security.txt rules. To discourage researchers from testing your instance and disable security.txt integration, set this to an empty string. |
154 | securitytxt: | 163 | securitytxt: |
155 | "# 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:" | 164 | "# 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:" |
diff --git a/config/test.yaml b/config/test.yaml index 0f280eabd..ad94b00cd 100644 --- a/config/test.yaml +++ b/config/test.yaml | |||
@@ -23,9 +23,18 @@ log: | |||
23 | 23 | ||
24 | redundancy: | 24 | redundancy: |
25 | videos: | 25 | videos: |
26 | - | 26 | check_interval: '5 seconds' |
27 | size: '100KB' | 27 | strategies: |
28 | strategy: 'most-views' | 28 | - |
29 | size: '10MB' | ||
30 | strategy: 'most-views' | ||
31 | - | ||
32 | size: '10MB' | ||
33 | strategy: 'trending' | ||
34 | - | ||
35 | size: '10MB' | ||
36 | strategy: 'recently-added' | ||
37 | minViews: 1 | ||
29 | 38 | ||
30 | cache: | 39 | cache: |
31 | previews: | 40 | previews: |