acme,nginx: Renamed var for validation root to acme prefix

dehydrated
Felix Stupp 5 years ago
parent d48d4885d7
commit 9ad4ada018
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -9,7 +9,7 @@
--home {{ acme_installation_directory | quote }}
--config-home {{ acme_configuration_directory | quote }}
--domain {{ domain | quote }}
--webroot {{ nginx_validation_root_directory | quote }}
--webroot {{ acme_validation_root_directory | quote }}
--ocsp-must-staple
args:
chdir: "{{ acme_installation_directory }}"

@ -15,5 +15,5 @@ nginx_global_error_log: "{{ nginx_global_log_directory }}/error.log"
# dhparams_remote_path from misc/dhparams
acme_validation_directory: ".well-known/acme-challenge"
nginx_validation_root_directory: "/var/www/validation"
nginx_validation_test_file: "{{ nginx_validation_root_directory }}/{{ acme_validation_directory }}/test"
acme_validation_root_directory: "/var/www/validation"
acme_validation_test_file: "{{ acme_validation_root_directory }}/{{ acme_validation_directory }}/test"

@ -52,13 +52,13 @@
group: "{{ acme_system_user }}"
mode: "u=rwx,g=rwx,o=rx"
loop:
- "{{ nginx_validation_root_directory }}"
- "{{ nginx_validation_test_file | dirname }}"
- "{{ acme_validation_root_directory }}"
- "{{ acme_validation_test_file | dirname }}"
- name: Configure test file for validation directory
copy:
content: "{{ inventory_hostname }}"
dest: "{{ nginx_validation_test_file }}"
dest: "{{ acme_validation_test_file }}"
owner: root
group: root
mode: "u=rw,g=r,o=r"

@ -1,5 +1,5 @@
location /{{ acme_validation_directory }} {
root {{ nginx_validation_root_directory }};
root {{ acme_validation_root_directory }};
access_log off;
location = /{{ acme_validation_directory }}/test {
types {}

Loading…
Cancel
Save