Expose SMTP and instance settings in the Docker environment variables (#277)
authorkaiyou <pierre@jaury.eu>
Tue, 6 Feb 2018 07:37:36 +0000 (08:37 +0100)
committerChocobozzz <me@florianbigard.com>
Tue, 6 Feb 2018 07:37:36 +0000 (08:37 +0100)
support/docker/production/config/custom-environment-variables.yaml
support/docker/production/config/production.yaml

index 5226e1742cfaf3b7804348ae2047c0eef2b64fb4..9139125a540b3ed63c1c96cc35a6db94eb892565 100644 (file)
@@ -23,6 +23,18 @@ redis:
     __format: "json"
   auth: "PEERTUBE_REDIS_AUTH"
 
+smtp:
+  hostname: "PEERTUBE_SMTP_HOSTNAME"
+  port:
+    __name: "PEERTUBE_SMTP_PORT"
+    __format: "json"
+  username: "PEERTUBE_SMTP_USERNAME"
+  password: "PEERTUBE_SMTP_PASSWORD"
+  tls:
+    __name: "PEERTUBE_SMTP_TLS"
+    __format: "json"
+  form_address: "PEERTUBE_ADMIN_EMAIL"
+
 admin:
   email: "PEERTUBE_ADMIN_EMAIL"
 
@@ -38,3 +50,8 @@ transcoding:
   enabled:
     __name: "PEERTUBE_TRANSCODING_ENABLED"
     __format: "json"
+
+instance:
+  name: "PEERTUBE_INSTANCE_NAME"
+  description: "PEERTUBE_INSTANCE_DESCRIPTION"
+  terms: "PEERTUBE_INSTANCE_TERMS"
index 4666ea2edc0c53e54ac27f9d623320bfb4ca5408..3cc72e573a495ff597c86f2e7e6a905a769d26a4 100644 (file)
@@ -21,6 +21,16 @@ redis:
   port: 6379
   auth: null
 
+# SMTP server to send emails
+smtp:
+  hostname: null
+  port: 465
+  username: null
+  password: null
+  tls: true
+  ca_file: null # Used for self signed certificates
+  from_address: 'admin@example.com'
+
 # From the project root directory
 storage:
   avatars: '../data/avatars/'
@@ -62,3 +72,9 @@ transcoding:
     480p: true
     720p: true
     1080p: true
+
+# Instance settings
+instance:
+  name: 'PeerTube'
+  description: '' # Support markdown
+  terms: '' # Support markdown