diff options
author | Chocobozzz <me@florianbigard.com> | 2020-12-30 16:53:11 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-12-30 17:06:21 +0100 |
commit | afd4ee86ddb97f8d49585fddd318bedcd3ad55b8 (patch) | |
tree | fae625fc92ba84936a063275dac122c1f4e8eb46 /support/nginx | |
parent | 83d4aba676ce376fe68ff17e7d92b037b108c2f1 (diff) | |
download | PeerTube-afd4ee86ddb97f8d49585fddd318bedcd3ad55b8.tar.gz PeerTube-afd4ee86ddb97f8d49585fddd318bedcd3ad55b8.tar.zst PeerTube-afd4ee86ddb97f8d49585fddd318bedcd3ad55b8.zip |
Remove traefik docker support
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"; |