system-config/playbooks/roles/static/files/50-ci.openstack.org.conf

43 lines
1.7 KiB
Plaintext

<Macro CiRedirects>
RewriteEngine On
RewriteRule ^/jenkins-job-builder(/.*|$) https://docs.openstack.org/infra/jenkins-job-builder$1 [last,redirect=permanent]
RewriteRule ^/nodepool(/.*|$) https://docs.openstack.org/infra/nodepool$1 [last,redirect=permanent]
RewriteRule ^/openstackid(/.*|$) https://docs.openstack.org/infra/openstackid$1 [last,redirect=permanent]
RewriteRule ^/shade(/.*|$) https://docs.openstack.org/shade/latest$1 [last,redirect=permanent]
RewriteRule ^/storyboard(/.*|$) https://docs.openstack.org/infra/storyboard$1 [last,redirect=permanent]
RewriteRule ^/zuul(/.*|$) https://zuul-ci.org/docs/zuul$1 [last,redirect=permanent]
RewriteRule ^/(.*) https://docs.openstack.org/infra/system-config/$1 [last,redirect=permanent]
</Macro>
<VirtualHost *:80>
ServerName ci.openstack.org
Use CiRedirects
LogLevel warn
ErrorLog /var/log/apache2/ci.openstack.org_error.log
CustomLog /var/log/apache2/ci.openstack.org_access.log combined
ServerSignature Off
</VirtualHost>
<VirtualHost *:443>
ServerName ci.openstack.org
SSLCertificateFile /etc/letsencrypt-certs/ci.openstack.org/ci.openstack.org.cer
SSLCertificateKeyFile /etc/letsencrypt-certs/ci.openstack.org/ci.openstack.org.key
SSLCertificateChainFile /etc/letsencrypt-certs/ci.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
Use CiRedirects
LogLevel warn
ErrorLog /var/log/apache2/ci.openstack.org_error.log
CustomLog /var/log/apache2/ci.openstack.org_access.log combined
ServerSignature Off
</VirtualHost>
UndefMacro CiRedirects