![Ian Wienand](/assets/img/avatar_default.png)
Add robots.txt same as the old server. While we're here and before the db is setup, put everything under /var/lib/lodgeit/ for general consistency. Change-Id: Ib40cba5bb9e1f9f98769c00e2e9fe09e8fb2582f
50 lines
1.3 KiB
Django/Jinja
50 lines
1.3 KiB
Django/Jinja
<VirtualHost *:80>
|
|
ServerName {{ inventory_hostname }}
|
|
ServerAdmin webmaster@openstack.org
|
|
|
|
ErrorLog ${APACHE_LOG_DIR}/paste-error.log
|
|
|
|
LogLevel warn
|
|
|
|
CustomLog ${APACHE_LOG_DIR}/paste-access.log combined
|
|
|
|
Redirect / https://paste.opendev.org/
|
|
|
|
</VirtualHost>
|
|
|
|
<VirtualHost *:443>
|
|
ServerName {{ inventory_hostname }}
|
|
ServerAdmin webmaster@openstack.org
|
|
|
|
AllowEncodedSlashes On
|
|
|
|
ErrorLog ${APACHE_LOG_DIR}/paste-ssl-error.log
|
|
|
|
LogLevel warn
|
|
|
|
CustomLog ${APACHE_LOG_DIR}/paste-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/{{ inventory_hostname }}/{{ inventory_hostname }}.cer
|
|
SSLCertificateKeyFile /etc/letsencrypt-certs/{{ inventory_hostname }}/{{ inventory_hostname }}.key
|
|
SSLCertificateChainFile /etc/letsencrypt-certs/{{ inventory_hostname }}/ca.cer
|
|
|
|
ProxyPass / http://localhost:9000/ retry=0
|
|
ProxyPassReverse / http://localhost:9000/
|
|
|
|
<Location "/robots.txt">
|
|
ProxyPass !
|
|
</Location>
|
|
<Directory "/var/lib/lodgeit/www">
|
|
Require all granted
|
|
</Directory>
|
|
Alias /robots.txt /var/lib/lodgeit/www/robots.txt
|
|
|
|
</VirtualHost>
|
|
|