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"
|
- "./etc/nginx:/opt/bitnami/nginx/conf/vhosts"
|
||||||
- "./Website:/opt/bitnami/nginx/html"
|
- "./Website:/opt/bitnami/nginx/html"
|
||||||
- "./etc/logs/nginx:/opt/bitnami/nginx/logs"
|
- "./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"
|
# - "./etc/nginx/fastcgi.conf:/bitnami/nginx/conf/fastcgi.conf"
|
||||||
ports:
|
ports:
|
||||||
- "80:8080"
|
- "80:8080"
|
||||||
- "443:443"
|
- "443:443"
|
||||||
environment:
|
environment:
|
||||||
- NGINX_HOST=${NGINX_HOST}
|
- NGINX_HOST=${NGINX_HOST}
|
||||||
# - LETSENCRYPT_HOST=localhost
|
|
||||||
# - LETSENCRYPT_EMAIL=root@root.com
|
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
myadmin:
|
myadmin:
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ server {
|
|||||||
client_max_body_size 100M;
|
client_max_body_size 100M;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ =404;
|
root /opt/bitnami/nginx/html;
|
||||||
}
|
}
|
||||||
|
|
||||||
####### Proxies #######
|
####### Proxies #######
|
||||||
@@ -81,7 +81,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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ server {
|
|||||||
client_max_body_size 100M;
|
client_max_body_size 100M;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ =404;
|
root /opt/bitnami/nginx/html;
|
||||||
}
|
}
|
||||||
|
|
||||||
####### Proxies #######
|
####### Proxies #######
|
||||||
|
|||||||
Reference in New Issue
Block a user