aboutsummaryrefslogtreecommitdiffhomepage
path: root/support/docker/production/config
diff options
context:
space:
mode:
Diffstat (limited to 'support/docker/production/config')
-rw-r--r--support/docker/production/config/custom-environment-variables.yaml40
-rw-r--r--support/docker/production/config/production.yaml64
2 files changed, 104 insertions, 0 deletions
diff --git a/support/docker/production/config/custom-environment-variables.yaml b/support/docker/production/config/custom-environment-variables.yaml
new file mode 100644
index 000000000..5226e1742
--- /dev/null
+++ b/support/docker/production/config/custom-environment-variables.yaml
@@ -0,0 +1,40 @@
1webserver:
2 hostname: "PEERTUBE_HOSTNAME"
3 port:
4 __name: "PEERTUBE_PORT"
5 __format: "json"
6 https:
7 __name: "PEERTUBE_HTTPS"
8 __format: "json"
9
10database:
11 hostname: "PEERTUBE_DB_HOSTNAME"
12 port:
13 __name: "PEERTUBE_DB_PORT"
14 __format: "json"
15 suffix: "PEERTUBE_DB_SUFFIX"
16 username: "PEERTUBE_DB_USERNAME"
17 password: "PEERTUBE_DB_PASSWORD"
18
19redis:
20 hostname: "PEERTUBE_REDIS_HOSTNAME"
21 port:
22 __name: "PEERTUBE_REDIS_PORT"
23 __format: "json"
24 auth: "PEERTUBE_REDIS_AUTH"
25
26admin:
27 email: "PEERTUBE_ADMIN_EMAIL"
28
29signup:
30 enabled:
31 __name: "PEERTUBE_SIGNUP_ENABLED"
32 __format: "json"
33 limit:
34 __name: "PEETUBE_SIGNUP_LIMIT"
35 __format: "json"
36
37transcoding:
38 enabled:
39 __name: "PEERTUBE_TRANSCODING_ENABLED"
40 __format: "json"
diff --git a/support/docker/production/config/production.yaml b/support/docker/production/config/production.yaml
new file mode 100644
index 000000000..4666ea2ed
--- /dev/null
+++ b/support/docker/production/config/production.yaml
@@ -0,0 +1,64 @@
1listen:
2 port: 9000
3
4# Correspond to your reverse proxy "listen" configuration
5webserver:
6 https: true
7 hostname: undefined
8 port: 443
9
10# Your database name will be "peertube"+database.suffix
11database:
12 hostname: 'db'
13 port: 5432
14 suffix: ''
15 username: 'postgres'
16 password: 'postgres'
17
18# Redis server for short time storage
19redis:
20 hostname: 'redis'
21 port: 6379
22 auth: null
23
24# From the project root directory
25storage:
26 avatars: '../data/avatars/'
27 certs: '../data/certs/'
28 videos: '../data/videos/'
29 logs: '../data/logs/'
30 previews: '../data/previews/'
31 thumbnails: '../data/thumbnails/'
32 torrents: '../data/torrents/'
33 cache: '../data/cache/'
34
35log:
36 level: 'info' # debug/info/warning/error
37
38cache:
39 previews:
40 size: 100 # Max number of previews you want to cache
41
42admin:
43 email: undefined
44
45signup:
46 enabled: false
47 limit: -1
48
49user:
50 # Default value of maximum video BYTES the user can upload (does not take into account transcoded files).
51 # -1 == unlimited
52 video_quota: -1
53
54# If enabled, the video will be transcoded to mp4 (x264) with "faststart" flag
55# Uses a lot of CPU!
56transcoding:
57 enabled: false
58 threads: 2
59 resolutions: # Only created if the original video has a higher resolution
60 240p: true
61 360p: true
62 480p: true
63 720p: true
64 1080p: true