From afd4ee86ddb97f8d49585fddd318bedcd3ad55b8 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 30 Dec 2020 16:53:11 +0100 Subject: Remove traefik docker support --- support/nginx/peertube | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) (limited to 'support/nginx') 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 @@ # OPTIONAL HTTP MODULES: Gzip, Headers, HTTP/2, Log, Real IP, SSL, Thread Pool, Upstream. # THIRD PARTY MODULES: None. -# Uncomment in production to redirect HTTP to HTTPS. Leave commented for docker-compose. -#server { -# listen 80; -# listen [::]:80; -# server_name ${WEBSERVER_HOST}; -# -# location /.well-known/acme-challenge/ { -# default_type "text/plain"; -# root /var/www/certbot; -# } -# location / { return 301 https://$host$request_uri; } -#} +server { + listen 80; + listen [::]:80; + server_name ${WEBSERVER_HOST}; + + location /.well-known/acme-challenge/ { + default_type "text/plain"; + root /var/www/certbot; + } + location / { return 301 https://$host$request_uri; } +} upstream backend { server ${PEERTUBE_HOST}; @@ -33,8 +32,8 @@ server { # Certificates # you need a certificate to run in production. see https://letsencrypt.org/ ## - ssl_certificate /etc/letsencrypt/live/peertube/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/peertube/privkey.pem; + ssl_certificate /etc/letsencrypt/live/${WEBSERVER_HOST}/fullchain.pem; + ssl_certificate_key /etc/letsencrypt/live/${WEBSERVER_HOST}/privkey.pem; location ^~ '/.well-known/acme-challenge' { default_type "text/plain"; -- cgit v1.2.3