Fixing lets encrypt certbot
This commit is contained in:
@@ -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 \
|
||||
|
||||
@@ -55,7 +55,7 @@ server {
|
||||
proxy_pass http://tomcat;
|
||||
}
|
||||
|
||||
location ~ /.well-known {
|
||||
location ~ /\.well-known/acme-challenge {
|
||||
root /opt/bitnami/nginx/html;
|
||||
allow all;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user