Create a stub certificate so that nginx can launch
This commit is contained in:
parent
51a97cb37e
commit
8bb29eed19
1 changed files with 8 additions and 2 deletions
|
@ -47,9 +47,15 @@
|
||||||
ssl_stapling on;
|
ssl_stapling on;
|
||||||
ssl_stapling_verify 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}}"
|
||||||
|
|
||||||
|
- name: seed a fake cert if needed
|
||||||
# diffie helman parameters
|
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
|
- name: launch certbot
|
||||||
command: docker compose up -d
|
command: docker compose up -d
|
||||||
|
|
Loading…
Reference in a new issue