diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/default.yaml | 19 | ||||
-rw-r--r-- | config/production.yaml.example | 15 | ||||
-rw-r--r-- | config/test.yaml | 8 |
3 files changed, 34 insertions, 8 deletions
diff --git a/config/default.yaml b/config/default.yaml index 3260c62fc..a0f2eb3a1 100644 --- a/config/default.yaml +++ b/config/default.yaml | |||
@@ -13,7 +13,7 @@ rates_limit: | |||
13 | api: | 13 | api: |
14 | # 50 attempts in 10 seconds | 14 | # 50 attempts in 10 seconds |
15 | window: 10 seconds | 15 | window: 10 seconds |
16 | max: 50 | 16 | max: 100 |
17 | login: | 17 | login: |
18 | # 15 attempts in 5 min | 18 | # 15 attempts in 5 min |
19 | window: 5 minutes | 19 | window: 5 minutes |
@@ -52,6 +52,10 @@ redis: | |||
52 | db: 0 | 52 | db: 0 |
53 | 53 | ||
54 | smtp: | 54 | smtp: |
55 | # smtp or sendmail | ||
56 | transport: smtp | ||
57 | # Path to sendmail command. Required if you use sendmail transport | ||
58 | sendmail: null | ||
55 | hostname: null | 59 | hostname: null |
56 | port: 465 | 60 | port: 465 |
57 | username: null | 61 | username: null |
@@ -126,6 +130,14 @@ redundancy: | |||
126 | # strategy: 'recently-added' # Cache recently added videos | 130 | # strategy: 'recently-added' # Cache recently added videos |
127 | # min_views: 10 # Having at least x views | 131 | # min_views: 10 # Having at least x views |
128 | 132 | ||
133 | # Other instances that duplicate your content | ||
134 | remote_redundancy: | ||
135 | videos: | ||
136 | # 'nobody': Do not accept remote redundancies | ||
137 | # 'anybody': Accept remote redundancies from anybody | ||
138 | # 'followings': Accept redundancies from instance followings | ||
139 | accept_from: 'anybody' | ||
140 | |||
129 | csp: | 141 | csp: |
130 | enabled: false | 142 | enabled: false |
131 | report_only: true # CSP directives are still being tested, so disable the report only mode at your own risk! | 143 | report_only: true # CSP directives are still being tested, so disable the report only mode at your own risk! |
@@ -249,7 +261,7 @@ auto_blacklist: | |||
249 | 261 | ||
250 | instance: | 262 | instance: |
251 | name: 'PeerTube' | 263 | name: 'PeerTube' |
252 | short_description: 'PeerTube, a federated (ActivityPub) video streaming platform using P2P (BitTorrent) directly in the web browser with WebTorrent and Angular.' | 264 | short_description: 'PeerTube, an ActivityPub-federated video streaming platform using P2P directly in your web browser.' |
253 | description: 'Welcome to this PeerTube instance!' # Support markdown | 265 | description: 'Welcome to this PeerTube instance!' # Support markdown |
254 | terms: 'No terms for now.' # Support markdown | 266 | terms: 'No terms for now.' # Support markdown |
255 | code_of_conduct: '' # Supports markdown | 267 | code_of_conduct: '' # Supports markdown |
@@ -355,7 +367,8 @@ followings: | |||
355 | # /!\ Don't enable this if you don't have a reactive moderation team /!\ | 367 | # /!\ Don't enable this if you don't have a reactive moderation team /!\ |
356 | auto_follow_index: | 368 | auto_follow_index: |
357 | enabled: false | 369 | enabled: false |
358 | index_url: 'https://instances.joinpeertube.org' | 370 | # Host your own using https://framagit.org/framasoft/peertube/instances-peertube#peertube-auto-follow |
371 | index_url: '' | ||
359 | 372 | ||
360 | theme: | 373 | theme: |
361 | default: 'default' | 374 | default: 'default' |
diff --git a/config/production.yaml.example b/config/production.yaml.example index 30cd2ffe0..8b8c98f8c 100644 --- a/config/production.yaml.example +++ b/config/production.yaml.example | |||
@@ -53,6 +53,10 @@ redis: | |||
53 | 53 | ||
54 | # SMTP server to send emails | 54 | # SMTP server to send emails |
55 | smtp: | 55 | smtp: |
56 | # smtp or sendmail | ||
57 | transport: smtp | ||
58 | # Path to sendmail command. Required if you use sendmail transport | ||
59 | sendmail: null | ||
56 | hostname: null | 60 | hostname: null |
57 | port: 465 # If you use StartTLS: 587 | 61 | port: 465 # If you use StartTLS: 587 |
58 | username: null | 62 | username: null |
@@ -127,6 +131,14 @@ redundancy: | |||
127 | # strategy: 'recently-added' # Cache recently added videos | 131 | # strategy: 'recently-added' # Cache recently added videos |
128 | # min_views: 10 # Having at least x views | 132 | # min_views: 10 # Having at least x views |
129 | 133 | ||
134 | # Other instances that duplicate your content | ||
135 | remote_redundancy: | ||
136 | videos: | ||
137 | # 'nobody': Do not accept remote redundancies | ||
138 | # 'anybody': Accept remote redundancies from anybody | ||
139 | # 'followings': Accept redundancies from instance followings | ||
140 | accept_from: 'anybody' | ||
141 | |||
130 | csp: | 142 | csp: |
131 | enabled: false | 143 | enabled: false |
132 | report_only: true # CSP directives are still being tested, so disable the report only mode at your own risk! | 144 | report_only: true # CSP directives are still being tested, so disable the report only mode at your own risk! |
@@ -369,7 +381,8 @@ followings: | |||
369 | # /!\ Don't enable this if you don't have a reactive moderation team /!\ | 381 | # /!\ Don't enable this if you don't have a reactive moderation team /!\ |
370 | auto_follow_index: | 382 | auto_follow_index: |
371 | enabled: false | 383 | enabled: false |
372 | index_url: 'https://instances.joinpeertube.org' | 384 | # Host your own using https://framagit.org/framasoft/peertube/instances-peertube#peertube-auto-follow |
385 | index_url: '' | ||
373 | 386 | ||
374 | theme: | 387 | theme: |
375 | default: 'default' | 388 | default: 'default' |
diff --git a/config/test.yaml b/config/test.yaml index 5758c1887..74979f3a7 100644 --- a/config/test.yaml +++ b/config/test.yaml | |||
@@ -40,18 +40,18 @@ contact_form: | |||
40 | 40 | ||
41 | redundancy: | 41 | redundancy: |
42 | videos: | 42 | videos: |
43 | check_interval: '10 minutes' | 43 | check_interval: '1 minute' |
44 | strategies: | 44 | strategies: |
45 | - | 45 | - |
46 | size: '10MB' | 46 | size: '1000MB' |
47 | min_lifetime: '10 minutes' | 47 | min_lifetime: '10 minutes' |
48 | strategy: 'most-views' | 48 | strategy: 'most-views' |
49 | - | 49 | - |
50 | size: '10MB' | 50 | size: '1000MB' |
51 | min_lifetime: '10 minutes' | 51 | min_lifetime: '10 minutes' |
52 | strategy: 'trending' | 52 | strategy: 'trending' |
53 | - | 53 | - |
54 | size: '10MB' | 54 | size: '1000MB' |
55 | min_lifetime: '10 minutes' | 55 | min_lifetime: '10 minutes' |
56 | strategy: 'recently-added' | 56 | strategy: 'recently-added' |
57 | min_views: 1 | 57 | min_views: 1 |