websites: apps.d.x: Switch to mod_md for cert
The _apps.du5t1n.xyz_ site now obtains its certificate from Let's Encrypt using the Apache _mod_md_ (managed domain) module. This dramatically simplifies the deployment of this certificate, eliminating the need for _cert-manager_ to obtain it, _cert-exporter_ to add it to _certs.git_, and Jenkins to push it out to the web server.unifi-restore
parent
0eb6220672
commit
48f47b8905
|
@ -1 +0,0 @@
|
||||||
../../.certs/certificates/apps.du5t1n.xyz.crt
|
|
|
@ -1 +0,0 @@
|
||||||
../../.certs/certificates/apps.du5t1n.xyz.key
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
MDomain apps.du5t1n.xyz
|
||||||
|
|
||||||
<VirtualHost _default_:80>
|
<VirtualHost _default_:80>
|
||||||
ServerName apps.du5t1n.xyz
|
ServerName apps.du5t1n.xyz
|
||||||
|
|
||||||
|
@ -9,8 +11,6 @@ RewriteRule (.*) https://%{SERVER_NAME}$1 [R=301,L]
|
||||||
ServerName apps.du5t1n.xyz
|
ServerName apps.du5t1n.xyz
|
||||||
|
|
||||||
Include conf.d/ssl.include
|
Include conf.d/ssl.include
|
||||||
SSLCertificateKeyFile /etc/pki/tls/private/apps.du5t1n.xyz.key
|
|
||||||
SSLCertificateFile /etc/pki/tls/certs/apps.du5t1n.xyz.cer
|
|
||||||
|
|
||||||
<IfModule mod_headers.c>
|
<IfModule mod_headers.c>
|
||||||
Header always set Strict-Transport-Security "max-age=63072000; includeSubDomains"
|
Header always set Strict-Transport-Security "max-age=63072000; includeSubDomains"
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
dependencies:
|
|
||||||
- role: cert
|
|
||||||
vars:
|
|
||||||
cert_src: websites/apps.du5t1n.xyz.cer
|
|
||||||
cert_dest: /etc/pki/tls/certs/apps.du5t1n.xyz.cer
|
|
||||||
cert_key_src: websites/apps.du5t1n.xyz.key
|
|
||||||
cert_key_dest: /etc/pki/tls/private/apps.du5t1n.xyz.key
|
|
Loading…
Reference in New Issue