From ea63bc1ab31900a102bf17684b6c4a0eaf25f788 Mon Sep 17 00:00:00 2001 From: Marwolf Date: Sat, 18 Aug 2018 13:39:12 -0400 Subject: [PATCH] Fixing lets encrypt certbot --- Lets_Encrypt.sh | 3 +-- etc/nginx/nginx.conf | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Lets_Encrypt.sh b/Lets_Encrypt.sh index 47f225d..a892087 100755 --- a/Lets_Encrypt.sh +++ b/Lets_Encrypt.sh @@ -1,8 +1,7 @@ #!/bin/bash sudo docker run -it --rm --name certbot \ - -v `pwd`/etc/letsencrypt/certs:/etc/letsencrypt \ - -v `pwd`/etc/letsencrypt/data:/data/letsencrypt \ + -v `pwd`/etc/letsencrypt/certs:/opt/bitnami/nginx/conf/bitnami/certs \ deliverous/certbot \ certonly \ --webroot --webroot-path=/data/letsencrypt \ diff --git a/etc/nginx/nginx.conf b/etc/nginx/nginx.conf index e7b3cf3..6b07395 100755 --- a/etc/nginx/nginx.conf +++ b/etc/nginx/nginx.conf @@ -55,7 +55,7 @@ server { proxy_pass http://tomcat; } - location ~ /.well-known { + location ~ /\.well-known/acme-challenge { root /opt/bitnami/nginx/html; allow all; }