system-config/playbooks/roles/static/files/50-security.openstack.org.conf
Ian Wienand f5b5ee9336 Add roles for a basic static server
Basic implementation of the opendev static server, described in

 https://docs.opendev.org/opendev/infra-specs/latest/specs/retire-static.html

Change-Id: Ie1b92f06b71aa6069fe831b26ba1cc272ce4562c
Story: #2006598
Task:  #37757
2020-01-16 14:10:08 +11:00

42 lines
1.4 KiB
Plaintext
Executable File

Define AFS_ROOT /afs/openstack.org/project/security.openstack.org
<VirtualHost *:80>
ServerName security.openstack.org
RewriteEngine On
RewriteRule ^/(.*) https://security.openstack.org/$1 [last,redirect=permanent]
LogLevel warn
ErrorLog /var/log/apache2/security.openstack.org_error.log
CustomLog /var/log/apache2/security.openstack.org_access.log combined
ServerSignature Off
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName security.openstack.org
DocumentRoot ${AFS_ROOT}
SSLCertificateFile /etc/letsencrypt-certs/security.openstack.org/security.openstack.org.cer
SSLCertificateKeyFile /etc/letsencrypt-certs/security.openstack.org/security.openstack.org.key
SSLCertificateChainFile /etc/letsencrypt-certs/security.openstack.org/ca.cer
SSLProtocol All -SSLv2 -SSLv3
# Note: this list should ensure ciphers that provide forward secrecy
SSLCipherSuite ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:!AES256:!aNULL:!eNULL:!MD5:!DSS:!PSK:!SRP
SSLHonorCipherOrder on
<Directory ${AFS_ROOT}>
Options Indexes FollowSymLinks MultiViews
AllowOverrideList Redirect RedirectMatch
Satisfy Any
Require all granted
</Directory>
LogLevel warn
ErrorLog /var/log/apache2/security.openstack.org_error.log
CustomLog /var/log/apache2/security.openstack.org_access.log combined
ServerSignature Off
</VirtualHost>
</IfModule>