]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - config/production.yaml.example
Add ability to choose what policy we have for NSFW videos
[github/Chocobozzz/PeerTube.git] / config / production.yaml.example
CommitLineData
552cc9d6 1listen:
cff8b272 2 hostname: 'localhost'
552cc9d6
C
3 port: 9000
4
21511bba 5# Correspond to your reverse proxy "listen" configuration
f1f4732f 6webserver:
d478d83d 7 https: true
3737bbaf 8 hostname: 'example.com'
d478d83d 9 port: 443
825a5d9c 10
490b595a
C
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)
14trust_proxy:
15 - 'loopback'
16
98dffd10 17# Your database name will be "peertube"+database.suffix
825a5d9c 18database:
552cc9d6
C
19 hostname: 'localhost'
20 port: 5432
feb4bdfd 21 suffix: '_prod'
6c05c149
C
22 username: 'peertube'
23 password: 'peertube'
552cc9d6 24
95540ed2 25# Redis server for short time storage
94a5ff8a
C
26redis:
27 hostname: 'localhost'
28 port: 6379
29 auth: null
30
95540ed2 31# SMTP server to send emails
ecb4e35f
C
32smtp:
33 hostname: null
34 port: 465
35 username: null
36 password: null
37 tls: true
bebf2d89 38 disable_starttls: false
ecb4e35f
C
39 ca_file: null # Used for self signed certificates
40 from_address: 'admin@example.com'
41
552cc9d6
C
42# From the project root directory
43storage:
59c48d49
C
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/'
4793c343 51
23e27dd5 52log:
a0922eb9 53 level: 'info' # debug/info/warning/error
23e27dd5 54
509cd56a
C
55
56###############################################################################
57#
f209b32a 58# From this point, all the following keys can be overridden by the web interface
509cd56a
C
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
62ccb24e
C
68cache:
69 previews:
d478d83d 70 size: 100 # Max number of previews you want to cache
62ccb24e 71
4793c343
C
72admin:
73 email: 'admin@example.com'
e22528ac
C
74
75signup:
76 enabled: false
62ccb24e 77 limit: 10 # When the limit is reached, registrations are disabled. -1 == unlimited
227d02fe 78
b0f9f39e
C
79user:
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
227d02fe
C
84# If enabled, the video will be transcoded to mp4 (x264) with "faststart" flag
85# Uses a lot of CPU!
86transcoding:
1125c40a 87 enabled: true
98f535a5 88 threads: 1
14d3270f 89 resolutions: # Only created if the original video has a higher resolution
1125c40a
C
90 240p: false
91 360p: false
92 480p: false
93 720p: false
94 1080p: false
66b16caf 95
95540ed2 96# Instance settings
66b16caf
C
97instance:
98 name: 'PeerTube'
2e3a0215 99 short_description: 'PeerTube, a federated (ActivityPub) video streaming platform using P2P (BitTorrent) directly in the web browser with WebTorrent and Angular.'
66b16caf
C
100 description: '' # Support markdown
101 terms: '' # Support markdown
901637bb 102 default_client_route: '/videos/trending'
0883b324
C
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'
00b5556c
C
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