From 1ca20fd68c956100cc62ced2de0e698d2b0765f5 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 26 Oct 2022 20:11:30 +0900 Subject: fix --- Makefile | 4 ++-- nginx/acme-challange.conf | 9 --------- nginx/acme-challenge.conf | 9 +++++++++ 3 files changed, 11 insertions(+), 11 deletions(-) delete mode 100644 nginx/acme-challange.conf create mode 100644 nginx/acme-challenge.conf diff --git a/Makefile b/Makefile index fe0d95bf..ce0c997e 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ all: deploy deploy: build serve .PHONY: setup -setup: certbot +setup: .nsfisis_dev_shared_network certbot cd vhosts/blog; make setup .PHONY: build @@ -30,4 +30,4 @@ clean: .PHONY: certbot certbot: - docker-compose run --rm certbot certonly --webroot -w /var/letsencrypt/www -d nsfisis.dev,blog.nsfisis.dev + docker-compose run --rm --entrypoint 'certbot certonly --register-unsafely-without-email --webroot -w /var/letsencrypt/www -d nsfisis.dev,blog.nsfisis.dev,www.nsfisis.dev' certbot diff --git a/nginx/acme-challange.conf b/nginx/acme-challange.conf deleted file mode 100644 index 66ed996e..00000000 --- a/nginx/acme-challange.conf +++ /dev/null @@ -1,9 +0,0 @@ -server { - listen 80 default; - listen [::]:80; - server_name nsfisis.dev; - - location ^~ /.well-known/acme-challenge { - root /var/letsencrypt/www; - } -} diff --git a/nginx/acme-challenge.conf b/nginx/acme-challenge.conf new file mode 100644 index 00000000..66ed996e --- /dev/null +++ b/nginx/acme-challenge.conf @@ -0,0 +1,9 @@ +server { + listen 80 default; + listen [::]:80; + server_name nsfisis.dev; + + location ^~ /.well-known/acme-challenge { + root /var/letsencrypt/www; + } +} -- cgit v1.2.3-70-g09d2