diff options
Diffstat (limited to 'support/nginx')
-rw-r--r-- | support/nginx/peertube | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/support/nginx/peertube b/support/nginx/peertube index 641d254af..31a690e29 100644 --- a/support/nginx/peertube +++ b/support/nginx/peertube | |||
@@ -4,18 +4,17 @@ | |||
4 | # OPTIONAL HTTP MODULES: Gzip, Headers, HTTP/2, Log, Real IP, SSL, Thread Pool, Upstream. | 4 | # OPTIONAL HTTP MODULES: Gzip, Headers, HTTP/2, Log, Real IP, SSL, Thread Pool, Upstream. |
5 | # THIRD PARTY MODULES: None. | 5 | # THIRD PARTY MODULES: None. |
6 | 6 | ||
7 | # Uncomment in production to redirect HTTP to HTTPS. Leave commented for docker-compose. | 7 | server { |
8 | #server { | 8 | listen 80; |
9 | # listen 80; | 9 | listen [::]:80; |
10 | # listen [::]:80; | 10 | server_name ${WEBSERVER_HOST}; |
11 | # server_name ${WEBSERVER_HOST}; | 11 | |
12 | # | 12 | location /.well-known/acme-challenge/ { |
13 | # location /.well-known/acme-challenge/ { | 13 | default_type "text/plain"; |
14 | # default_type "text/plain"; | 14 | root /var/www/certbot; |
15 | # root /var/www/certbot; | 15 | } |
16 | # } | 16 | location / { return 301 https://$host$request_uri; } |
17 | # location / { return 301 https://$host$request_uri; } | 17 | } |
18 | #} | ||
19 | 18 | ||
20 | upstream backend { | 19 | upstream backend { |
21 | server ${PEERTUBE_HOST}; | 20 | server ${PEERTUBE_HOST}; |
@@ -33,8 +32,8 @@ server { | |||
33 | # Certificates | 32 | # Certificates |
34 | # you need a certificate to run in production. see https://letsencrypt.org/ | 33 | # you need a certificate to run in production. see https://letsencrypt.org/ |
35 | ## | 34 | ## |
36 | ssl_certificate /etc/letsencrypt/live/peertube/fullchain.pem; | 35 | ssl_certificate /etc/letsencrypt/live/${WEBSERVER_HOST}/fullchain.pem; |
37 | ssl_certificate_key /etc/letsencrypt/live/peertube/privkey.pem; | 36 | ssl_certificate_key /etc/letsencrypt/live/${WEBSERVER_HOST}/privkey.pem; |
38 | 37 | ||
39 | location ^~ '/.well-known/acme-challenge' { | 38 | location ^~ '/.well-known/acme-challenge' { |
40 | default_type "text/plain"; | 39 | default_type "text/plain"; |