Fixing lets encrypt certbot

This commit is contained in:
Marwolf
2018-08-18 13:39:12 -04:00
parent 200e2d82c7
commit ea63bc1ab3
2 changed files with 2 additions and 3 deletions

View File

@@ -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 \

View File

@@ -55,7 +55,7 @@ server {
proxy_pass http://tomcat;
}
location ~ /.well-known {
location ~ /\.well-known/acme-challenge {
root /opt/bitnami/nginx/html;
allow all;
}