]>
Commit | Line | Data |
---|---|---|
1 | listen: | |
2 | hostname: 'localhost' | |
3 | port: 9000 | |
4 | ||
5 | # Correspond to your reverse proxy "listen" configuration | |
6 | webserver: | |
7 | https: true | |
8 | hostname: 'example.com' | |
9 | port: 443 | |
10 | ||
11 | # Proxies to trust to get real client IP | |
12 | # If you run PeerTube just behind a local proxy (nginx), keep 'loopback' | |
13 | # If you run PeerTube behind a remote proxy, add the proxy IP address (or subnet) | |
14 | trust_proxy: | |
15 | - 'loopback' | |
16 | ||
17 | # Your database name will be "peertube"+database.suffix | |
18 | database: | |
19 | hostname: 'localhost' | |
20 | port: 5432 | |
21 | suffix: '_prod' | |
22 | username: 'peertube' | |
23 | password: 'peertube' | |
24 | ||
25 | # Redis server for short time storage | |
26 | redis: | |
27 | hostname: 'localhost' | |
28 | port: 6379 | |
29 | auth: null | |
30 | ||
31 | # SMTP server to send emails | |
32 | smtp: | |
33 | hostname: null | |
34 | port: 465 | |
35 | username: null | |
36 | password: null | |
37 | tls: true | |
38 | disable_starttls: false | |
39 | ca_file: null # Used for self signed certificates | |
40 | from_address: 'admin@example.com' | |
41 | ||
42 | # From the project root directory | |
43 | storage: | |
44 | avatars: '/var/www/peertube/storage/avatars/' | |
45 | videos: '/var/www/peertube/storage/videos/' | |
46 | logs: '/var/www/peertube/storage/logs/' | |
47 | previews: '/var/www/peertube/storage/previews/' | |
48 | thumbnails: '/var/www/peertube/storage/thumbnails/' | |
49 | torrents: '/var/www/peertube/storage/torrents/' | |
50 | cache: '/var/www/peertube/storage/cache/' | |
51 | ||
52 | log: | |
53 | level: 'info' # debug/info/warning/error | |
54 | ||
55 | ||
56 | ############################################################################### | |
57 | # | |
58 | # From this point, all the following keys can be overridden by the web interface | |
59 | # (local-production.json file). If you need to change some values, prefer to | |
60 | # use the web interface because the configuration will be automatically | |
61 | # reloaded without any need to restart PeerTube. | |
62 | # | |
63 | # /!\ If you already have a local-production.json file, the modification of the | |
64 | # following keys will have no effect /!\. | |
65 | # | |
66 | ############################################################################### | |
67 | ||
68 | cache: | |
69 | previews: | |
70 | size: 100 # Max number of previews you want to cache | |
71 | ||
72 | admin: | |
73 | email: 'admin@example.com' | |
74 | ||
75 | signup: | |
76 | enabled: false | |
77 | limit: 10 # When the limit is reached, registrations are disabled. -1 == unlimited | |
78 | ||
79 | user: | |
80 | # Default value of maximum video BYTES the user can upload (does not take into account transcoded files). | |
81 | # -1 == unlimited | |
82 | video_quota: -1 | |
83 | ||
84 | # If enabled, the video will be transcoded to mp4 (x264) with "faststart" flag | |
85 | # Uses a lot of CPU! | |
86 | transcoding: | |
87 | enabled: true | |
88 | threads: 1 | |
89 | resolutions: # Only created if the original video has a higher resolution | |
90 | 240p: false | |
91 | 360p: false | |
92 | 480p: false | |
93 | 720p: false | |
94 | 1080p: false | |
95 | ||
96 | # Instance settings | |
97 | instance: | |
98 | name: 'PeerTube' | |
99 | short_description: 'PeerTube, a federated (ActivityPub) video streaming platform using P2P (BitTorrent) directly in the web browser with WebTorrent and Angular.' | |
100 | description: '' # Support markdown | |
101 | terms: '' # Support markdown | |
102 | default_client_route: '/videos/trending' | |
103 | # By default, "do_not_list" or "blur" or "display" NSFW videos | |
104 | # Could be overridden per user with a setting | |
105 | default_nsfw_policy: 'do_not_list' | |
106 | customizations: | |
107 | javascript: '' # Directly your JavaScript code (without <script> tags). Will be eval at runtime | |
108 | css: '' # Directly your CSS code (without <style> tags). Will be injected at runtime |