mirror of
https://github.com/HanXHX/ansible-nginx.git
synced 2026-04-09 12:42:10 +07:00
Let's encript certificate with acme.sh
This commit is contained in:
15
doc/acme.md
Normal file
15
doc/acme.md
Normal file
@@ -0,0 +1,15 @@
|
||||
acme.sh
|
||||
=======
|
||||
|
||||
Notes
|
||||
-----
|
||||
|
||||
This feature is experimental.
|
||||
|
||||
Variables
|
||||
---------
|
||||
|
||||
- `nginx_acmesh`: (bool) Enable/Disable acme.sh feature
|
||||
- `nginx_acmesh_dir`: (string) Install directory
|
||||
- `nginx_acmesh_git_dir`: (string) Git directory (removed after install)
|
||||
- `nginx_acmesh_test`: (bool) If set to true (default false), uses test mode
|
||||
13
doc/ssl.md
13
doc/ssl.md
@@ -52,6 +52,9 @@ nginx_sites;
|
||||
- name: 'test-ssl2.local'
|
||||
proto: ['http', 'https']
|
||||
template: '_base'
|
||||
- name: 'test-ssl3.local'
|
||||
proto: ['http', 'https']
|
||||
template: '_base'
|
||||
|
||||
nginx_ssl_pairs:
|
||||
- name: mysuperkey
|
||||
@@ -64,14 +67,6 @@ nginx_ssl_pairs:
|
||||
....(snip)....
|
||||
-----END CERTIFICATE-----
|
||||
- name: test-ssl2.local
|
||||
key: |
|
||||
-----BEGIN RSA PRIVATE KEY-----
|
||||
....(snip)....
|
||||
-----END RSA PRIVATE KEY-----
|
||||
cert: |
|
||||
-----BEGIN CERTIFICATE-----
|
||||
....(snip)....
|
||||
-----END CERTIFICATE-----
|
||||
|
||||
acme: true
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user