From a6e93f19e3147e2e21d4a838e6e232c9a99f8684 Mon Sep 17 00:00:00 2001 From: jfederico Date: Sat, 25 Apr 2020 09:58:29 -0400 Subject: Added new version Updated init-letsencrypt updated init-letsencrypt with docker-compose-init updated init-letsencrypt with docker-compose-init restored init-letsencrypt updates to certbot updates to certbot updates to certbot updates to certbot updates to certbot updates to certbot updates to certbot added certbot to scalelite-nginx fixed settings for acme-challenge added blacklist updated init-letsencrypt for working with scaleite-nginx Removed unnecessary files percisted certbot logs and added env options to init-letsencrypt --- nginx/sites.template | 55 ---------------------------------------------------- 1 file changed, 55 deletions(-) delete mode 100644 nginx/sites.template (limited to 'nginx/sites.template') diff --git a/nginx/sites.template b/nginx/sites.template deleted file mode 100644 index 29e5366..0000000 --- a/nginx/sites.template +++ /dev/null @@ -1,55 +0,0 @@ -#### For <$NGINX_HOSTNAME> - -upstream docker-scalelite { - server scalelite.api:3000; -} - -server { - server_name $NGINX_HOSTNAME; - - listen 80; - listen [::]:80; - - location /.well-known/acme-challenge/ { - root /var/www/certbot; - } - - location / { - return 301 https://$host$request_uri; - } -} - -server { - server_name $NGINX_HOSTNAME; - - listen 443 ssl; - listen [::]:443; - - ## Configuration for Letsencrypt SSL Certificate - ssl_certificate /etc/letsencrypt/live/$NGINX_HOSTNAME/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/$NGINX_HOSTNAME/privkey.pem; - - ## Configuration for SSL Certificate from a CA other than Letsencrypt - #ssl_certificate /etc/ssl/fullchain.pem; - #ssl_certificate_key /etc/ssl/privkey.pem; - - location / { - proxy_pass http://docker-scalelite; - proxy_read_timeout 60s; - proxy_redirect off; - - proxy_set_header Host $http_host; - - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header Cookie "$http_cookie; ip=$remote_addr"; - - proxy_set_header X-Forwarded-Proto $scheme; - - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; - - rewrite ~/(.*)$ /$1 break; - } -} -- cgit v1.2.3