diff options
author | Chocobozzz <me@florianbigard.com> | 2018-09-20 16:24:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-20 16:24:31 +0200 |
commit | 0491173a61aed66205c017e0d7e0503ea316c144 (patch) | |
tree | ce6621597505f9518cfdf0981977d097c63f9fad /support | |
parent | 8704acf49efc770d73bf07c10468ed8c74d28a83 (diff) | |
parent | 6247b2057b792cea155a1abd9788c363ae7d2cc2 (diff) | |
download | PeerTube-0491173a61aed66205c017e0d7e0503ea316c144.tar.gz PeerTube-0491173a61aed66205c017e0d7e0503ea316c144.tar.zst PeerTube-0491173a61aed66205c017e0d7e0503ea316c144.zip |
Merge branch 'develop' into cli-wrapper
Diffstat (limited to 'support')
-rw-r--r-- | support/docker/production/.env | 1 | ||||
-rw-r--r-- | support/docker/production/config/custom-environment-variables.yaml | 2 | ||||
-rw-r--r-- | support/nginx/peertube | 4 |
3 files changed, 6 insertions, 1 deletions
diff --git a/support/docker/production/.env b/support/docker/production/.env index 51c4e0ace..8af161b2a 100644 --- a/support/docker/production/.env +++ b/support/docker/production/.env | |||
@@ -3,6 +3,7 @@ PEERTUBE_DB_PASSWORD=postgres_password | |||
3 | PEERTUBE_WEBSERVER_HOSTNAME=domain.tld | 3 | PEERTUBE_WEBSERVER_HOSTNAME=domain.tld |
4 | PEERTUBE_WEBSERVER_PORT=443 | 4 | PEERTUBE_WEBSERVER_PORT=443 |
5 | PEERTUBE_WEBSERVER_HTTPS=true | 5 | PEERTUBE_WEBSERVER_HTTPS=true |
6 | PEERTUBE_TRUST_PROXY=127.0.0.1 | ||
6 | PEERTUBE_SMTP_USERNAME= | 7 | PEERTUBE_SMTP_USERNAME= |
7 | PEERTUBE_SMTP_PASSWORD= | 8 | PEERTUBE_SMTP_PASSWORD= |
8 | PEERTUBE_SMTP_HOSTNAME= | 9 | PEERTUBE_SMTP_HOSTNAME= |
diff --git a/support/docker/production/config/custom-environment-variables.yaml b/support/docker/production/config/custom-environment-variables.yaml index 1c732e2e0..daf885813 100644 --- a/support/docker/production/config/custom-environment-variables.yaml +++ b/support/docker/production/config/custom-environment-variables.yaml | |||
@@ -7,6 +7,8 @@ webserver: | |||
7 | __name: "PEERTUBE_WEBSERVER_HTTPS" | 7 | __name: "PEERTUBE_WEBSERVER_HTTPS" |
8 | __format: "json" | 8 | __format: "json" |
9 | 9 | ||
10 | trust_proxy: "PEERTUBE_TRUST_PROXY" | ||
11 | |||
10 | database: | 12 | database: |
11 | hostname: "PEERTUBE_DB_HOSTNAME" | 13 | hostname: "PEERTUBE_DB_HOSTNAME" |
12 | port: | 14 | port: |
diff --git a/support/nginx/peertube b/support/nginx/peertube index 0da427037..b00031133 100644 --- a/support/nginx/peertube +++ b/support/nginx/peertube | |||
@@ -58,12 +58,14 @@ server { | |||
58 | root /var/www/certbot; | 58 | root /var/www/certbot; |
59 | } | 59 | } |
60 | 60 | ||
61 | # Bypass PeerTube for performance reasons. Could be removed | ||
61 | location ~ ^/client/(.*\.(js|css|woff2|otf|ttf|woff|eot))$ { | 62 | location ~ ^/client/(.*\.(js|css|woff2|otf|ttf|woff|eot))$ { |
62 | add_header Cache-Control "public, max-age=31536000, immutable"; | 63 | add_header Cache-Control "public, max-age=31536000, immutable"; |
63 | 64 | ||
64 | alias /var/www/peertube/peertube-latest/client/dist/$1; | 65 | alias /var/www/peertube/peertube-latest/client/dist/$1; |
65 | } | 66 | } |
66 | 67 | ||
68 | # Bypass PeerTube for performance reasons. Could be removed | ||
67 | location ~ ^/static/(thumbnails|avatars)/ { | 69 | location ~ ^/static/(thumbnails|avatars)/ { |
68 | if ($request_method = 'OPTIONS') { | 70 | if ($request_method = 'OPTIONS') { |
69 | add_header 'Access-Control-Allow-Origin' '*'; | 71 | add_header 'Access-Control-Allow-Origin' '*'; |
@@ -102,7 +104,7 @@ server { | |||
102 | send_timeout 600; | 104 | send_timeout 600; |
103 | } | 105 | } |
104 | 106 | ||
105 | # Bypass PeerTube webseed route for better performances | 107 | # Bypass PeerTube for performance reasons. Could be removed |
106 | location /static/webseed { | 108 | location /static/webseed { |
107 | # Clients usually have 4 simultaneous webseed connections, so the real limit is 3MB/s per client | 109 | # Clients usually have 4 simultaneous webseed connections, so the real limit is 3MB/s per client |
108 | limit_rate 800k; | 110 | limit_rate 800k; |