add LE SSL options
This commit is contained in:
parent
3c956bbb01
commit
d273d9db96
2 changed files with 8 additions and 0 deletions
|
@ -32,6 +32,13 @@ class dns::apache2 (
|
||||||
refreshonly => true,
|
refreshonly => true,
|
||||||
notify => Service['apache2'],
|
notify => Service['apache2'],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
file {'/etc/letsencrypt/options-ssl-apache.conf':
|
||||||
|
ensure => present,
|
||||||
|
source => "cp /usr/lib/python3/dist-packages/certbot_apache/_internal/tls_configs/current-options-ssl-apache.conf",
|
||||||
|
}
|
||||||
|
|
||||||
|
# NFT rules
|
||||||
sunet::nftables::rule { 'apache-http':
|
sunet::nftables::rule { 'apache-http':
|
||||||
rule => "add rule inet filter input tcp dport 80 counter accept comment \"allow-apache2-http\""
|
rule => "add rule inet filter input tcp dport 80 counter accept comment \"allow-apache2-http\""
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,5 +22,6 @@
|
||||||
ServerName dns-rest-api.sunet.se
|
ServerName dns-rest-api.sunet.se
|
||||||
SSLCertificateFile /etc/letsencrypt/live/dns-rest-api.sunet.se/fullchain.pem
|
SSLCertificateFile /etc/letsencrypt/live/dns-rest-api.sunet.se/fullchain.pem
|
||||||
SSLCertificateKeyFile /etc/letsencrypt/live/dns-rest-api.sunet.se/privkey.pem
|
SSLCertificateKeyFile /etc/letsencrypt/live/dns-rest-api.sunet.se/privkey.pem
|
||||||
|
Include /etc/letsencrypt/options-ssl-apache.conf
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
Loading…
Add table
Reference in a new issue