Fixing lets encrypt certbot
This commit is contained in:
@@ -1,8 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
sudo docker run -it --rm --name certbot \
|
sudo docker run -it --rm --name certbot \
|
||||||
-v `pwd`/etc/letsencrypt/certs:/etc/letsencrypt \
|
-v `pwd`/etc/letsencrypt/certs:/opt/bitnami/nginx/conf/bitnami/certs \
|
||||||
-v `pwd`/etc/letsencrypt/data:/data/letsencrypt \
|
|
||||||
deliverous/certbot \
|
deliverous/certbot \
|
||||||
certonly \
|
certonly \
|
||||||
--webroot --webroot-path=/data/letsencrypt \
|
--webroot --webroot-path=/data/letsencrypt \
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ server {
|
|||||||
proxy_pass http://tomcat;
|
proxy_pass http://tomcat;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ /.well-known {
|
location ~ /\.well-known/acme-challenge {
|
||||||
root /opt/bitnami/nginx/html;
|
root /opt/bitnami/nginx/html;
|
||||||
allow all;
|
allow all;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user