Further changes
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
sudo docker run -it --rm --name certbot \
|
||||
-v `pwd`/etc/letsencrypt/certs:/opt/bitnami/nginx/conf/bitnami/certs \
|
||||
deliverous/certbot \
|
||||
certonly \
|
||||
--webroot --webroot-path=/data/letsencrypt \
|
||||
-d localhost -d www.localhost --staging
|
||||
@@ -8,15 +8,13 @@ services:
|
||||
- "./etc/nginx:/opt/bitnami/nginx/conf/vhosts"
|
||||
- "./Website:/opt/bitnami/nginx/html"
|
||||
- "./etc/logs/nginx:/opt/bitnami/nginx/logs"
|
||||
- "./etc/letsencrypt/certs:/opt/bitnami/nginx/conf/bitnami/certs"
|
||||
- "./etc/letsencrypt:/etc/letsencrypt"
|
||||
# - "./etc/nginx/fastcgi.conf:/bitnami/nginx/conf/fastcgi.conf"
|
||||
ports:
|
||||
- "80:8080"
|
||||
- "443:443"
|
||||
environment:
|
||||
- NGINX_HOST=${NGINX_HOST}
|
||||
# - LETSENCRYPT_HOST=localhost
|
||||
# - LETSENCRYPT_EMAIL=root@root.com
|
||||
restart: always
|
||||
|
||||
myadmin:
|
||||
|
||||
@@ -47,7 +47,7 @@ server {
|
||||
client_max_body_size 100M;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ =404;
|
||||
root /opt/bitnami/nginx/html;
|
||||
}
|
||||
|
||||
####### Proxies #######
|
||||
@@ -81,7 +81,7 @@ server {
|
||||
proxy_pass http://tomcat;
|
||||
}
|
||||
|
||||
location ~ /.well-known {
|
||||
location ~ /\.well-known/acme-challenge {
|
||||
root /opt/bitnami/nginx/html;
|
||||
allow all;
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ server {
|
||||
client_max_body_size 100M;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ =404;
|
||||
root /opt/bitnami/nginx/html;
|
||||
}
|
||||
|
||||
####### Proxies #######
|
||||
|
||||
Reference in New Issue
Block a user