
The dependent change exports the ptgbot website on port 8000 in the container. Proxy this through apache. Depends-On: https://review.opendev.org/c/openstack/ptgbot/+/812417 Change-Id: Idf9e9f5ffad981427d24a3476c0c1f244721d917
44 lines
1.3 KiB
Django/Jinja
44 lines
1.3 KiB
Django/Jinja
<VirtualHost *:80>
|
|
ServerName {{ inventory_hostname }}
|
|
ServerAdmin infra-root@openstack.org
|
|
|
|
ErrorLog ${APACHE_LOG_DIR}/ptgbot-error.log
|
|
|
|
LogLevel warn
|
|
|
|
CustomLog ${APACHE_LOG_DIR}/ptgbot-access.log combined
|
|
|
|
Redirect / https://ptgbot.opendev.org/
|
|
|
|
</VirtualHost>
|
|
|
|
<VirtualHost *:443>
|
|
ServerName ptgbot.opendev.org
|
|
ServerAdmin webmaster@openstack.org
|
|
|
|
RewriteCond %{HTTP_HOST} !^ptgbot\.opendev\.org [nocase]
|
|
RewriteRule ^/(.*) https://ptgbot.opendev.org/$1 [last,redirect=permanent]
|
|
|
|
AllowEncodedSlashes On
|
|
|
|
ErrorLog ${APACHE_LOG_DIR}/ptgbot-ssl-error.log
|
|
|
|
LogLevel warn
|
|
|
|
CustomLog ${APACHE_LOG_DIR}/ptgbot-ssl-access.log combined
|
|
|
|
SSLEngine on
|
|
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
|
|
|
|
SSLCertificateFile /etc/letsencrypt-certs/ptgbot.opendev.org/ptgbot.opendev.org.cer
|
|
SSLCertificateKeyFile /etc/letsencrypt-certs/ptgbot.opendev.org/ptgbot.opendev.org.key
|
|
SSLCertificateChainFile /etc/letsencrypt-certs/ptgbot.opendev.org/ca.cer
|
|
|
|
ProxyPass / http://localhost:8000/ retry=0
|
|
ProxyPassReverse / http://localhost:8000/
|
|
|
|
</VirtualHost>
|