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; }