Attempting to correct various issues

This commit is contained in:
Marwolf
2018-07-27 12:36:07 -04:00
parent 76b15f6e00
commit 823c304cc2
3 changed files with 8 additions and 7 deletions

View File

@@ -1,9 +1,9 @@
#!/bin/bash #!/bin/bash
docker run -it --rm --name certbot \ sudo docker run -it --rm --name certbot \
-v `pwd`/etc/certbot/certs:/etc/letsencrypt \ -v `pwd`/etc/certbot/certs:/etc/letsencrypt \
-v `pwd`/etc/certbot/data:/data/letsencrypt \ -v `pwd`/etc/certbot/data:/data/letsencrypt \
deliverous/certbot \ deliverous/certbot \
certonly \ certonly \
--webroot --webroot-path=/data/letsencrypt \ --webroot --webroot-path=/data/letsencrypt \
-d openrsc.com -d www.openrsc.com -d openrsc.com -d www.openrsc.com --staging

View File

@@ -9,6 +9,7 @@ services:
- "./Website:/var/www/html/public:ro" - "./Website:/var/www/html/public:ro"
- "./etc/nginx/default.template.conf:/etc/nginx/conf.d/default.template" - "./etc/nginx/default.template.conf:/etc/nginx/conf.d/default.template"
- "./etc/logs/nginx:/var/log/nginx" - "./etc/logs/nginx:/var/log/nginx"
- "./etc/logs/letsencrypt:/var/log/letsencrypt"
- "./etc/letsencrypt/certs:/etc/letsencrypt" - "./etc/letsencrypt/certs:/etc/letsencrypt"
- "./etc/letsencrypt/data:/data/letsencrypt" - "./etc/letsencrypt/data:/data/letsencrypt"
ports: ports:

View File

@@ -103,11 +103,11 @@ server {
# rewrite ^ https://$host$request_uri? permanent; # rewrite ^ https://$host$request_uri? permanent;
# } # }
# # Certbot for HTTPS cert renewal # Certbot for HTTPS cert renewal
# location ^~ /.well-known { location ^~ /.well-known {
# allow all; allow all;
# root /data/letsencrypt/; root /data/letsencrypt/;
# } }
} }
#HTTPS #HTTPS