diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/default.yaml | 11 | ||||
-rw-r--r-- | config/dev.yaml | 5 | ||||
-rw-r--r-- | config/production.yaml.example | 11 | ||||
-rw-r--r-- | config/test.yaml | 1 |
4 files changed, 28 insertions, 0 deletions
diff --git a/config/default.yaml b/config/default.yaml index 20094ae8f..37059e9e0 100644 --- a/config/default.yaml +++ b/config/default.yaml | |||
@@ -37,6 +37,11 @@ rates_limit: | |||
37 | window: 10 minutes | 37 | window: 10 minutes |
38 | max: 10 | 38 | max: 10 |
39 | 39 | ||
40 | oauth2: | ||
41 | token_lifetime: | ||
42 | access_token: '1 day' | ||
43 | refresh_token: '2 weeks' | ||
44 | |||
40 | # Proxies to trust to get real client IP | 45 | # Proxies to trust to get real client IP |
41 | # If you run PeerTube just behind a local proxy (nginx), keep 'loopback' | 46 | # If you run PeerTube just behind a local proxy (nginx), keep 'loopback' |
42 | # If you run PeerTube behind a remote proxy, add the proxy IP address (or subnet) | 47 | # If you run PeerTube behind a remote proxy, add the proxy IP address (or subnet) |
@@ -377,9 +382,15 @@ contact_form: | |||
377 | 382 | ||
378 | signup: | 383 | signup: |
379 | enabled: false | 384 | enabled: false |
385 | |||
380 | limit: 10 # When the limit is reached, registrations are disabled. -1 == unlimited | 386 | limit: 10 # When the limit is reached, registrations are disabled. -1 == unlimited |
387 | |||
381 | minimum_age: 16 # Used to configure the signup form | 388 | minimum_age: 16 # Used to configure the signup form |
389 | |||
390 | # Users fill a form to register so moderators can accept/reject the registration | ||
391 | requires_approval: true | ||
382 | requires_email_verification: false | 392 | requires_email_verification: false |
393 | |||
383 | filters: | 394 | filters: |
384 | cidr: # You can specify CIDR ranges to whitelist (empty = no filtering) or blacklist | 395 | cidr: # You can specify CIDR ranges to whitelist (empty = no filtering) or blacklist |
385 | whitelist: [] | 396 | whitelist: [] |
diff --git a/config/dev.yaml b/config/dev.yaml index ef93afc19..44856fb6a 100644 --- a/config/dev.yaml +++ b/config/dev.yaml | |||
@@ -8,6 +8,11 @@ webserver: | |||
8 | secrets: | 8 | secrets: |
9 | peertube: 'my super dev secret' | 9 | peertube: 'my super dev secret' |
10 | 10 | ||
11 | rates_limit: | ||
12 | signup: | ||
13 | window: 5 minutes | ||
14 | max: 200 | ||
15 | |||
11 | database: | 16 | database: |
12 | hostname: 'localhost' | 17 | hostname: 'localhost' |
13 | port: 5432 | 18 | port: 5432 |
diff --git a/config/production.yaml.example b/config/production.yaml.example index e8b354d01..906fb7e1f 100644 --- a/config/production.yaml.example +++ b/config/production.yaml.example | |||
@@ -35,6 +35,11 @@ rates_limit: | |||
35 | window: 10 minutes | 35 | window: 10 minutes |
36 | max: 10 | 36 | max: 10 |
37 | 37 | ||
38 | oauth2: | ||
39 | token_lifetime: | ||
40 | access_token: '1 day' | ||
41 | refresh_token: '2 weeks' | ||
42 | |||
38 | # Proxies to trust to get real client IP | 43 | # Proxies to trust to get real client IP |
39 | # If you run PeerTube just behind a local proxy (nginx), keep 'loopback' | 44 | # If you run PeerTube just behind a local proxy (nginx), keep 'loopback' |
40 | # If you run PeerTube behind a remote proxy, add the proxy IP address (or subnet) | 45 | # If you run PeerTube behind a remote proxy, add the proxy IP address (or subnet) |
@@ -387,9 +392,15 @@ contact_form: | |||
387 | 392 | ||
388 | signup: | 393 | signup: |
389 | enabled: false | 394 | enabled: false |
395 | |||
390 | limit: 10 # When the limit is reached, registrations are disabled. -1 == unlimited | 396 | limit: 10 # When the limit is reached, registrations are disabled. -1 == unlimited |
397 | |||
391 | minimum_age: 16 # Used to configure the signup form | 398 | minimum_age: 16 # Used to configure the signup form |
399 | |||
400 | # Users fill a form to register so moderators can accept/reject the registration | ||
401 | requires_approval: true | ||
392 | requires_email_verification: false | 402 | requires_email_verification: false |
403 | |||
393 | filters: | 404 | filters: |
394 | cidr: # You can specify CIDR ranges to whitelist (empty = no filtering) or blacklist | 405 | cidr: # You can specify CIDR ranges to whitelist (empty = no filtering) or blacklist |
395 | whitelist: [] | 406 | whitelist: [] |
diff --git a/config/test.yaml b/config/test.yaml index 878d68cb9..94d74ffa5 100644 --- a/config/test.yaml +++ b/config/test.yaml | |||
@@ -74,6 +74,7 @@ cache: | |||
74 | 74 | ||
75 | signup: | 75 | signup: |
76 | enabled: true | 76 | enabled: true |
77 | requires_approval: false | ||
77 | requires_email_verification: false | 78 | requires_email_verification: false |
78 | 79 | ||
79 | transcoding: | 80 | transcoding: |