diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/default.yaml | 31 | ||||
-rw-r--r-- | config/dev.yaml | 3 | ||||
-rw-r--r-- | config/production.yaml.example | 31 | ||||
-rw-r--r-- | config/test-1.yaml | 1 | ||||
-rw-r--r-- | config/test-2.yaml | 1 | ||||
-rw-r--r-- | config/test-3.yaml | 1 | ||||
-rw-r--r-- | config/test-4.yaml | 1 | ||||
-rw-r--r-- | config/test-5.yaml | 1 | ||||
-rw-r--r-- | config/test-6.yaml | 1 | ||||
-rw-r--r-- | config/test.yaml | 3 |
10 files changed, 68 insertions, 6 deletions
diff --git a/config/default.yaml b/config/default.yaml index 0b0a54eef..a916b1dc3 100644 --- a/config/default.yaml +++ b/config/default.yaml | |||
@@ -10,6 +10,11 @@ webserver: | |||
10 | hostname: 'localhost' | 10 | hostname: 'localhost' |
11 | port: 9000 | 11 | port: 9000 |
12 | 12 | ||
13 | # Secrets you need to generate the first time you run PeerTube | ||
14 | secrets: | ||
15 | # Generate one using `openssl rand -hex 32` | ||
16 | peertube: '' | ||
17 | |||
13 | rates_limit: | 18 | rates_limit: |
14 | api: | 19 | api: |
15 | # 50 attempts in 10 seconds | 20 | # 50 attempts in 10 seconds |
@@ -122,6 +127,7 @@ storage: | |||
122 | captions: 'storage/captions/' | 127 | captions: 'storage/captions/' |
123 | cache: 'storage/cache/' | 128 | cache: 'storage/cache/' |
124 | plugins: 'storage/plugins/' | 129 | plugins: 'storage/plugins/' |
130 | well_known: 'storage/well-known/' | ||
125 | # Overridable client files in client/dist/assets/images: | 131 | # Overridable client files in client/dist/assets/images: |
126 | # - logo.svg | 132 | # - logo.svg |
127 | # - favicon.png | 133 | # - favicon.png |
@@ -134,6 +140,10 @@ storage: | |||
134 | # If not, peertube will fallback to the default file | 140 | # If not, peertube will fallback to the default file |
135 | client_overrides: 'storage/client-overrides/' | 141 | client_overrides: 'storage/client-overrides/' |
136 | 142 | ||
143 | static_files: | ||
144 | # Require and check user authentication when accessing private files (internal/private video files) | ||
145 | private_files_require_auth: true | ||
146 | |||
137 | object_storage: | 147 | object_storage: |
138 | enabled: false | 148 | enabled: false |
139 | 149 | ||
@@ -142,8 +152,19 @@ object_storage: | |||
142 | 152 | ||
143 | region: 'us-east-1' | 153 | region: 'us-east-1' |
144 | 154 | ||
145 | # Set this ACL on each uploaded object | 155 | upload_acl: |
146 | upload_acl: 'public-read' | 156 | # Set this ACL on each uploaded object of public/unlisted videos |
157 | public: 'public-read' | ||
158 | # Set this ACL on each uploaded object of private/internal videos | ||
159 | # PeerTube can proxify requests to private objects so your users can access them | ||
160 | private: 'private' | ||
161 | |||
162 | proxy: | ||
163 | # If private files (private/internal video files) have a private ACL, users can't access directly the ressource | ||
164 | # PeerTube can proxify requests between your object storage service and your users | ||
165 | # If you disable PeerTube proxy, ensure you use your own proxy that is able to access the private files | ||
166 | # Or you can also set a public ACL for private files in object storage if you don't want to use a proxy | ||
167 | proxify_private_files: true | ||
147 | 168 | ||
148 | credentials: | 169 | credentials: |
149 | # You can also use AWS_ACCESS_KEY_ID env variable | 170 | # You can also use AWS_ACCESS_KEY_ID env variable |
@@ -557,6 +578,9 @@ import: | |||
557 | # Number of latest published videos to check and to potentially import when syncing a channel | 578 | # Number of latest published videos to check and to potentially import when syncing a channel |
558 | videos_limit_per_synchronization: 10 | 579 | videos_limit_per_synchronization: 10 |
559 | 580 | ||
581 | # Max number of videos to import when the user asks for full sync | ||
582 | full_sync_videos_limit: 1000 | ||
583 | |||
560 | auto_blacklist: | 584 | auto_blacklist: |
561 | # New videos automatically blacklisted so moderators can review before publishing | 585 | # New videos automatically blacklisted so moderators can review before publishing |
562 | videos: | 586 | videos: |
@@ -638,7 +662,8 @@ instance: | |||
638 | robots: | | 662 | robots: | |
639 | User-agent: * | 663 | User-agent: * |
640 | Disallow: | 664 | Disallow: |
641 | # Security.txt rules. To discourage researchers from testing your instance and disable security.txt integration, set this to an empty string | 665 | # /.well-known/security.txt rules. This endpoint is cached, so you may have to wait a few hours before viewing your changes |
666 | # To discourage researchers from testing your instance and disable security.txt integration, set this to an empty string | ||
642 | securitytxt: | 667 | securitytxt: |
643 | '# 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:' | 668 | '# 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:' |
644 | 669 | ||
diff --git a/config/dev.yaml b/config/dev.yaml index ca93874d2..ef93afc19 100644 --- a/config/dev.yaml +++ b/config/dev.yaml | |||
@@ -5,6 +5,9 @@ listen: | |||
5 | webserver: | 5 | webserver: |
6 | https: false | 6 | https: false |
7 | 7 | ||
8 | secrets: | ||
9 | peertube: 'my super dev secret' | ||
10 | |||
8 | database: | 11 | database: |
9 | hostname: 'localhost' | 12 | hostname: 'localhost' |
10 | port: 5432 | 13 | port: 5432 |
diff --git a/config/production.yaml.example b/config/production.yaml.example index 209aaa56a..100bc7948 100644 --- a/config/production.yaml.example +++ b/config/production.yaml.example | |||
@@ -8,6 +8,11 @@ webserver: | |||
8 | hostname: 'example.com' | 8 | hostname: 'example.com' |
9 | port: 443 | 9 | port: 443 |
10 | 10 | ||
11 | # Secrets you need to generate the first time you run PeerTube | ||
12 | secrets: | ||
13 | # Generate one using `openssl rand -hex 32` | ||
14 | peertube: '' | ||
15 | |||
11 | rates_limit: | 16 | rates_limit: |
12 | api: | 17 | api: |
13 | # 50 attempts in 10 seconds | 18 | # 50 attempts in 10 seconds |
@@ -120,6 +125,7 @@ storage: | |||
120 | captions: '/var/www/peertube/storage/captions/' | 125 | captions: '/var/www/peertube/storage/captions/' |
121 | cache: '/var/www/peertube/storage/cache/' | 126 | cache: '/var/www/peertube/storage/cache/' |
122 | plugins: '/var/www/peertube/storage/plugins/' | 127 | plugins: '/var/www/peertube/storage/plugins/' |
128 | well_known: '/var/www/peertube/storage/well-known/' | ||
123 | # Overridable client files in client/dist/assets/images: | 129 | # Overridable client files in client/dist/assets/images: |
124 | # - logo.svg | 130 | # - logo.svg |
125 | # - favicon.png | 131 | # - favicon.png |
@@ -132,6 +138,10 @@ storage: | |||
132 | # If not, peertube will fallback to the default file | 138 | # If not, peertube will fallback to the default file |
133 | client_overrides: '/var/www/peertube/storage/client-overrides/' | 139 | client_overrides: '/var/www/peertube/storage/client-overrides/' |
134 | 140 | ||
141 | static_files: | ||
142 | # Require and check user authentication when accessing private files (internal/private video files) | ||
143 | private_files_require_auth: true | ||
144 | |||
135 | object_storage: | 145 | object_storage: |
136 | enabled: false | 146 | enabled: false |
137 | 147 | ||
@@ -140,8 +150,19 @@ object_storage: | |||
140 | 150 | ||
141 | region: 'us-east-1' | 151 | region: 'us-east-1' |
142 | 152 | ||
143 | # Set this ACL on each uploaded object | 153 | upload_acl: |
144 | upload_acl: 'public-read' | 154 | # Set this ACL on each uploaded object of public/unlisted videos |
155 | public: 'public-read' | ||
156 | # Set this ACL on each uploaded object of private/internal videos | ||
157 | # PeerTube can proxify requests to private objects so your users can access them | ||
158 | private: 'private' | ||
159 | |||
160 | proxy: | ||
161 | # If private files (private/internal video files) have a private ACL, users can't access directly the ressource | ||
162 | # PeerTube can proxify requests between your object storage service and your users | ||
163 | # If you disable PeerTube proxy, ensure you use your own proxy that is able to access the private files | ||
164 | # Or you can also set a public ACL for private files in object storage if you don't want to use a proxy | ||
165 | proxify_private_files: true | ||
145 | 166 | ||
146 | credentials: | 167 | credentials: |
147 | # You can also use AWS_ACCESS_KEY_ID env variable | 168 | # You can also use AWS_ACCESS_KEY_ID env variable |
@@ -567,6 +588,9 @@ import: | |||
567 | # Number of latest published videos to check and to potentially import when syncing a channel | 588 | # Number of latest published videos to check and to potentially import when syncing a channel |
568 | videos_limit_per_synchronization: 10 | 589 | videos_limit_per_synchronization: 10 |
569 | 590 | ||
591 | # Max number of videos to import when the user asks for full sync | ||
592 | full_sync_videos_limit: 1000 | ||
593 | |||
570 | auto_blacklist: | 594 | auto_blacklist: |
571 | # New videos automatically blacklisted so moderators can review before publishing | 595 | # New videos automatically blacklisted so moderators can review before publishing |
572 | videos: | 596 | videos: |
@@ -648,7 +672,8 @@ instance: | |||
648 | robots: | | 672 | robots: | |
649 | User-agent: * | 673 | User-agent: * |
650 | Disallow: | 674 | Disallow: |
651 | # Security.txt rules. To discourage researchers from testing your instance and disable security.txt integration, set this to an empty string | 675 | # /.well-known/security.txt rules. This endpoint is cached, so you may have to wait a few hours before viewing your changes |
676 | # To discourage researchers from testing your instance and disable security.txt integration, set this to an empty string | ||
652 | securitytxt: | 677 | securitytxt: |
653 | '# 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:' | 678 | '# 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:' |
654 | 679 | ||
diff --git a/config/test-1.yaml b/config/test-1.yaml index fd6a5a341..1402f3048 100644 --- a/config/test-1.yaml +++ b/config/test-1.yaml | |||
@@ -23,6 +23,7 @@ storage: | |||
23 | captions: 'test1/captions/' | 23 | captions: 'test1/captions/' |
24 | cache: 'test1/cache/' | 24 | cache: 'test1/cache/' |
25 | plugins: 'test1/plugins/' | 25 | plugins: 'test1/plugins/' |
26 | well_known: 'test1/well-known/' | ||
26 | client_overrides: 'test1/client-overrides/' | 27 | client_overrides: 'test1/client-overrides/' |
27 | 28 | ||
28 | admin: | 29 | admin: |
diff --git a/config/test-2.yaml b/config/test-2.yaml index 5a4ba0abd..5d9db762f 100644 --- a/config/test-2.yaml +++ b/config/test-2.yaml | |||
@@ -23,6 +23,7 @@ storage: | |||
23 | captions: 'test2/captions/' | 23 | captions: 'test2/captions/' |
24 | cache: 'test2/cache/' | 24 | cache: 'test2/cache/' |
25 | plugins: 'test2/plugins/' | 25 | plugins: 'test2/plugins/' |
26 | well_known: 'test2/well-known/' | ||
26 | client_overrides: 'test2/client-overrides/' | 27 | client_overrides: 'test2/client-overrides/' |
27 | 28 | ||
28 | admin: | 29 | admin: |
diff --git a/config/test-3.yaml b/config/test-3.yaml index c04df6029..97fe9cd44 100644 --- a/config/test-3.yaml +++ b/config/test-3.yaml | |||
@@ -23,6 +23,7 @@ storage: | |||
23 | captions: 'test3/captions/' | 23 | captions: 'test3/captions/' |
24 | cache: 'test3/cache/' | 24 | cache: 'test3/cache/' |
25 | plugins: 'test3/plugins/' | 25 | plugins: 'test3/plugins/' |
26 | well_known: 'test3/well-known/' | ||
26 | client_overrides: 'test3/client-overrides/' | 27 | client_overrides: 'test3/client-overrides/' |
27 | 28 | ||
28 | admin: | 29 | admin: |
diff --git a/config/test-4.yaml b/config/test-4.yaml index 963dee547..328e70fa6 100644 --- a/config/test-4.yaml +++ b/config/test-4.yaml | |||
@@ -23,6 +23,7 @@ storage: | |||
23 | captions: 'test4/captions/' | 23 | captions: 'test4/captions/' |
24 | cache: 'test4/cache/' | 24 | cache: 'test4/cache/' |
25 | plugins: 'test4/plugins/' | 25 | plugins: 'test4/plugins/' |
26 | well_known: 'test4/well-known/' | ||
26 | client_overrides: 'test4/client-overrides/' | 27 | client_overrides: 'test4/client-overrides/' |
27 | 28 | ||
28 | admin: | 29 | admin: |
diff --git a/config/test-5.yaml b/config/test-5.yaml index f41378c24..3e6ca9c12 100644 --- a/config/test-5.yaml +++ b/config/test-5.yaml | |||
@@ -23,6 +23,7 @@ storage: | |||
23 | captions: 'test5/captions/' | 23 | captions: 'test5/captions/' |
24 | cache: 'test5/cache/' | 24 | cache: 'test5/cache/' |
25 | plugins: 'test5/plugins/' | 25 | plugins: 'test5/plugins/' |
26 | well_known: 'test5/well-known/' | ||
26 | client_overrides: 'test5/client-overrides/' | 27 | client_overrides: 'test5/client-overrides/' |
27 | 28 | ||
28 | admin: | 29 | admin: |
diff --git a/config/test-6.yaml b/config/test-6.yaml index 574f89d19..89a71593f 100644 --- a/config/test-6.yaml +++ b/config/test-6.yaml | |||
@@ -23,6 +23,7 @@ storage: | |||
23 | captions: 'test6/captions/' | 23 | captions: 'test6/captions/' |
24 | cache: 'test6/cache/' | 24 | cache: 'test6/cache/' |
25 | plugins: 'test6/plugins/' | 25 | plugins: 'test6/plugins/' |
26 | well_known: 'test6/well-known/' | ||
26 | client_overrides: 'test6/client-overrides/' | 27 | client_overrides: 'test6/client-overrides/' |
27 | 28 | ||
28 | admin: | 29 | admin: |
diff --git a/config/test.yaml b/config/test.yaml index a87642bd8..48cf0c0f6 100644 --- a/config/test.yaml +++ b/config/test.yaml | |||
@@ -5,6 +5,9 @@ listen: | |||
5 | webserver: | 5 | webserver: |
6 | https: false | 6 | https: false |
7 | 7 | ||
8 | secrets: | ||
9 | peertube: 'my super secret' | ||
10 | |||
8 | rates_limit: | 11 | rates_limit: |
9 | signup: | 12 | signup: |
10 | window: 10 minutes | 13 | window: 10 minutes |