Create a stub certificate so that nginx can launch

This commit is contained in:
Erik Stambaugh 2024-01-20 08:51:52 -08:00
parent 51a97cb37e
commit 8bb29eed19

View file

@ -47,9 +47,15 @@
ssl_stapling on;
ssl_stapling_verify on;
- name: create the dir for the cert if needed
command: "docker exec -t certbot mkdir -p /etc/letsencrypt/live/{{domain_name}}/"
args:
creates: "/srv/certbot/etc/live/{{domain_name}}"
# diffie helman parameters
- name: seed a fake cert if needed
command: "docker exec -t certbot openssl req -nodes -new -x509 -subj '/CN=localhost' -out /etc/letsencrypt/live/{{domain_name}}/fullchain.pem -keyout /etc/letsencrypt/live/{{domain_name}}/privkey.pem"
args:
creates: "/srv/certbot/etc/live/{{domain_name}}/fullchain.pem"
- name: launch certbot
command: docker compose up -d