Ignore doc and .yardoc directories created by the linter
[mirror/dsa-puppet.git] / modules / apache2 / files / puppet-ssl-macros
1 <IfModule mod_ssl.c>
2   <IfModule mod_macro.c>
3     <Macro common-ssl-HSTS>
4       <IfModule mod_headers.c>
5         # Add six months HSTS header
6         Header always add Strict-Transport-Security "max-age=15552000"
7       </IfModule>
8     </Macro>
9
10     <Macro common-debian-service-ssl $name>
11       SSLEngine on
12       SSLCertificateFile    /etc/ssl/debian/certs/$name.crt-chained
13       SSLCertificateKeyFile /etc/ssl/private/$name.key
14     </Macro>
15
16     <Macro common-debian-service-https-redirect $bind $name>
17       <VirtualHost $bind:80>
18         ServerName $name
19         ServerAdmin debian-admin@lists.debian.org
20
21         CustomLog /var/log/apache2/$name-access.log privacy
22         ErrorLog /var/log/apache2/$name-error.log
23
24         Redirect permanent / https://$name/
25       </VirtualHost>
26     </Macro>
27   </IfModule>
28 </IfModule>