Use certs dir from dehydrated role

This commit is contained in:
Stefan Haun 2021-03-11 22:24:35 +01:00
parent 9fe4d808c2
commit f8f5981a8d

View file

@ -8,7 +8,7 @@
Alias /.well-known/acme-challenge {{ dehydrated_wellknown_dir }} Alias /.well-known/acme-challenge {{ dehydrated_wellknown_dir }}
</VirtualHost> </VirtualHost>
<IfFile /usr/local/etc/dehydrated/certs/{{ site_name }}> <IfFile {{dehydrated_certs_dir}}/{{ site_name }}>
<VirtualHost {{ ansible_default_ipv4.address }}:443 [{{ ansible_default_ipv6.address | default('::1') }}]:80> <VirtualHost {{ ansible_default_ipv4.address }}:443 [{{ ansible_default_ipv6.address | default('::1') }}]:80>
ServerAdmin {{ server_admin }} ServerAdmin {{ server_admin }}
ServerName {{ site_name }} ServerName {{ site_name }}
@ -19,9 +19,9 @@
SSLEngine on SSLEngine on
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
SSLCertificateFile /usr/local/etc/dehydrated/certs/{{ site_name }}/cert.pem SSLCertificateFile {{dehydrated_certs_dir}}/{{ site_name }}/cert.pem
SSLCertificateKeyFile /usr/local/etc/dehydrated/certs/{{ site_name }}/privkey.pem SSLCertificateKeyFile {{dehydrated_certs_dir}}/{{ site_name }}/privkey.pem
SSLCertificateChainFile /usr/local/etc/dehydrated/certs/{{ site_name }}/chain.pem SSLCertificateChainFile {{dehydrated_certs_dir}}/{{ site_name }}/chain.pem
Alias /.well-known/acme-challenge {{ dehydrated_wellknown_dir }} Alias /.well-known/acme-challenge {{ dehydrated_wellknown_dir }}