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