diff options
Diffstat (limited to 'config/default.yaml')
-rw-r--r-- | config/default.yaml | 71 |
1 files changed, 69 insertions, 2 deletions
diff --git a/config/default.yaml b/config/default.yaml index e16b8c352..37ef4366f 100644 --- a/config/default.yaml +++ b/config/default.yaml | |||
@@ -9,6 +9,16 @@ webserver: | |||
9 | hostname: 'localhost' | 9 | hostname: 'localhost' |
10 | port: 9000 | 10 | port: 9000 |
11 | 11 | ||
12 | rates_limit: | ||
13 | login: | ||
14 | # 15 attempts in 5 min | ||
15 | window: 5 minutes | ||
16 | max: 15 | ||
17 | ask_send_email: | ||
18 | # 3 attempts in 5 min | ||
19 | window: 5 minutes | ||
20 | max: 3 | ||
21 | |||
12 | # Proxies to trust to get real client IP | 22 | # Proxies to trust to get real client IP |
13 | # If you run PeerTube just behind a local proxy (nginx), keep 'loopback' | 23 | # If you run PeerTube just behind a local proxy (nginx), keep 'loopback' |
14 | # If you run PeerTube behind a remote proxy, add the proxy IP address (or subnet) | 24 | # If you run PeerTube behind a remote proxy, add the proxy IP address (or subnet) |
@@ -48,6 +58,7 @@ storage: | |||
48 | tmp: 'storage/tmp/' # Used to download data (imports etc), store uploaded files before processing... | 58 | tmp: 'storage/tmp/' # Used to download data (imports etc), store uploaded files before processing... |
49 | avatars: 'storage/avatars/' | 59 | avatars: 'storage/avatars/' |
50 | videos: 'storage/videos/' | 60 | videos: 'storage/videos/' |
61 | streaming_playlists: 'storage/streaming-playlists/' | ||
51 | redundancy: 'storage/redundancy/' | 62 | redundancy: 'storage/redundancy/' |
52 | logs: 'storage/logs/' | 63 | logs: 'storage/logs/' |
53 | previews: 'storage/previews/' | 64 | previews: 'storage/previews/' |
@@ -95,6 +106,38 @@ redundancy: | |||
95 | # strategy: 'recently-added' # Cache recently added videos | 106 | # strategy: 'recently-added' # Cache recently added videos |
96 | # min_views: 10 # Having at least x views | 107 | # min_views: 10 # Having at least x views |
97 | 108 | ||
109 | csp: | ||
110 | enabled: false | ||
111 | report_only: true # CSP directives are still being tested, so disable the report only mode at your own risk! | ||
112 | report_uri: | ||
113 | |||
114 | tracker: | ||
115 | # If you disable the tracker, you disable the P2P aspect of PeerTube | ||
116 | enabled: true | ||
117 | # Only handle requests on your videos. | ||
118 | # If you set this to false it means you have a public tracker. | ||
119 | # Then, it is possible that clients overload your instance with external torrents | ||
120 | private: true | ||
121 | # Reject peers that do a lot of announces (could improve privacy of TCP/UDP peers) | ||
122 | reject_too_many_announces: false | ||
123 | |||
124 | history: | ||
125 | videos: | ||
126 | # If you want to limit users videos history | ||
127 | # -1 means there is no limitations | ||
128 | # Other values could be '6 months' or '30 days' etc (PeerTube will periodically delete old entries from database) | ||
129 | max_age: -1 | ||
130 | |||
131 | views: | ||
132 | videos: | ||
133 | # PeerTube creates a database entry every hour for each video to track views over a period of time | ||
134 | # This is used in particular by the Trending page | ||
135 | # PeerTube could remove old remote video views if you want to reduce your database size (video view counter will not be altered) | ||
136 | # -1 means no cleanup | ||
137 | # Other values could be '6 months' or '30 days' etc (PeerTube will periodically delete old entries from database) | ||
138 | remote: | ||
139 | max_age: -1 | ||
140 | |||
98 | cache: | 141 | cache: |
99 | previews: | 142 | previews: |
100 | size: 500 # Max number of previews you want to cache | 143 | size: 500 # Max number of previews you want to cache |
@@ -138,6 +181,15 @@ transcoding: | |||
138 | 480p: false | 181 | 480p: false |
139 | 720p: false | 182 | 720p: false |
140 | 1080p: false | 183 | 1080p: false |
184 | # /!\ EXPERIMENTAL /!\ | ||
185 | # /!\ Requires ffmpeg >= 4 | ||
186 | # Generate HLS playlists and fragmented MP4 files. Better playback than with WebTorrent: | ||
187 | # * Resolution change is smoother | ||
188 | # * Faster playback in particular with long videos | ||
189 | # * More stable playback (less bugs/infinite loading) | ||
190 | # /!\ Multiplies videos storage by 2 /!\ | ||
191 | hls: | ||
192 | enabled: false | ||
141 | 193 | ||
142 | import: | 194 | import: |
143 | # Add ability for your users to import remote videos (from YouTube, torrent...) | 195 | # Add ability for your users to import remote videos (from YouTube, torrent...) |
@@ -147,12 +199,22 @@ import: | |||
147 | torrent: # Magnet URI or torrent file (use classic TCP/UDP/WebSeed to download the file) | 199 | torrent: # Magnet URI or torrent file (use classic TCP/UDP/WebSeed to download the file) |
148 | enabled: false | 200 | enabled: false |
149 | 201 | ||
202 | auto_blacklist: | ||
203 | # New videos automatically blacklisted so moderators can review before publishing | ||
204 | videos: | ||
205 | of_users: | ||
206 | enabled: false | ||
207 | |||
150 | instance: | 208 | instance: |
151 | name: 'PeerTube' | 209 | name: 'PeerTube' |
152 | short_description: 'PeerTube, a federated (ActivityPub) video streaming platform using P2P (BitTorrent) directly in the web browser with WebTorrent and Angular.' | 210 | short_description: 'PeerTube, a federated (ActivityPub) video streaming platform using P2P (BitTorrent) directly in the web browser with WebTorrent and Angular.' |
153 | description: 'Welcome to this PeerTube instance!' # Support markdown | 211 | description: 'Welcome to this PeerTube instance!' # Support markdown |
154 | terms: 'No terms for now.' # Support markdown | 212 | terms: 'No terms for now.' # Support markdown |
155 | default_client_route: '/videos/trending' | 213 | default_client_route: '/videos/trending' |
214 | # Whether or not the instance is dedicated to NSFW content | ||
215 | # Enabling it will allow other administrators to know that you are mainly federating sensitive content | ||
216 | # Moreover, the NSFW checkbox on video upload will be automatically checked by default | ||
217 | is_nsfw: false | ||
156 | # By default, "do_not_list" or "blur" or "display" NSFW videos | 218 | # By default, "do_not_list" or "blur" or "display" NSFW videos |
157 | # Could be overridden per user with a setting | 219 | # Could be overridden per user with a setting |
158 | default_nsfw_policy: 'do_not_list' | 220 | default_nsfw_policy: 'do_not_list' |
@@ -168,8 +230,6 @@ instance: | |||
168 | "# 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:" | 230 | "# 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:" |
169 | 231 | ||
170 | services: | 232 | services: |
171 | # You can provide a reporting endpoint for Content Security Policy violations | ||
172 | csp-logger: | ||
173 | # Cards configuration to format video in Twitter | 233 | # Cards configuration to format video in Twitter |
174 | twitter: | 234 | twitter: |
175 | username: '@Chocobozzz' # Indicates the Twitter account for the website or platform on which the content was published | 235 | username: '@Chocobozzz' # Indicates the Twitter account for the website or platform on which the content was published |
@@ -177,3 +237,10 @@ services: | |||
177 | # If false, we use an image link card that will redirect on your PeerTube instance | 237 | # If false, we use an image link card that will redirect on your PeerTube instance |
178 | # Change it to "true", and then test on https://cards-dev.twitter.com/validator to see if you are whitelisted | 238 | # Change it to "true", and then test on https://cards-dev.twitter.com/validator to see if you are whitelisted |
179 | whitelisted: false | 239 | whitelisted: false |
240 | |||
241 | followers: | ||
242 | instance: | ||
243 | # Allow or not other instances to follow yours | ||
244 | enabled: true | ||
245 | # Whether or not an administrator must manually validate a new follower | ||
246 | manual_approval: false | ||