Attempting to correct various issues
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user