From 79b96cad6e11bf6fcfaa264540198783a9ed08b2 Mon Sep 17 00:00:00 2001 From: Jon Chambers Date: Thu, 22 Sep 2022 15:40:24 -0400 Subject: [PATCH] Expose Certbot ports --- data/nginx-terminate/nginx.conf | 2 +- docker-compose.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/data/nginx-terminate/nginx.conf b/data/nginx-terminate/nginx.conf index 61f0e6a..f3efd13 100644 --- a/data/nginx-terminate/nginx.conf +++ b/data/nginx-terminate/nginx.conf @@ -10,7 +10,7 @@ http { listen 80; location /.well-known/acme-challenge/ { - root /var/www/certbot; + alias /var/www/certbot/; } } } diff --git a/docker-compose.yml b/docker-compose.yml index a3b3635..828ef3d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,6 +10,7 @@ services: - ./data/certbot/www:/var/www/certbot ports: - "443:443" + - "80:80" command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; /opt/nginx/sbin/nginx -s reload; done & /opt/nginx/sbin/nginx -c /etc/nginx/conf.d/nginx.conf -g \"daemon off;\"'" nginx-relay: build: ./nginx-relay/