Further changes

This commit is contained in:
Marwolf
2018-08-18 16:15:42 -04:00
parent ea63bc1ab3
commit 4e7f767498
4 changed files with 4 additions and 14 deletions

View File

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

View File

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

View File

@@ -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;
}

View File

@@ -21,7 +21,7 @@ server {
client_max_body_size 100M;
location / {
try_files $uri $uri/ =404;
root /opt/bitnami/nginx/html;
}
####### Proxies #######