From: Luca Filipozzi Date: Fri, 3 Aug 2018 10:22:24 +0000 (+0000) Subject: complete RT#7389 X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fdsa-puppet.git;a=commitdiff_plain;h=50f3bee0b3eefc0245a119a38f30409e34d04d5e complete RT#7389 Signed-off-by: Luca Filipozzi --- diff --git a/modules/roles/files/debconf_wafer/debconf19.debconf.org b/modules/roles/files/debconf_wafer/debconf19.debconf.org new file mode 100644 index 000000000..c3e9552a0 --- /dev/null +++ b/modules/roles/files/debconf_wafer/debconf19.debconf.org @@ -0,0 +1,64 @@ +AddType application/font-woff2 .woff2 + +Use common-debian-service-https-redirect * debconf19.debconf.org + +WSGIDaemonProcess debconf19 \ + processes=3 threads=2 \ + user=www-data group=debconf-web maximum-requests=750 umask=0007 display-name=wsgi-debconf19.debconf.org \ + python-path=/srv/debconf-web/debconf19.debconf.org/dc19.dc.o/:/srv/debconf-web/debconf19.debconf.org/dc19.dc.o/ve/lib/python3.5/site-packages/ + + + ServerAdmin admin@debconf.org + ServerName debconf19.debconf.org + + ErrorLog /var/log/apache2/debconf19.debconf.org-error.log + CustomLog /var/log/apache2/debconf19.debconf.org-access.log combined + + Use common-debian-service-ssl debconf19.debconf.org + Use common-ssl-HSTS + + Header always set Referrer-Policy "same-origin" + Header always set X-Content-Type-Options nosniff + Header always set X-XSS-Protection "1; mode=block" +# Header always set Access-Control-Allow-Origin: "*" + + # Debian SSO + SSLCACertificateFile /var/lib/dsa/sso/ca.crt + SSLCARevocationCheck chain + SSLCARevocationFile /var/lib/dsa/sso/ca.crl + + WSGIProcessGroup debconf19 + WSGIScriptAlias / /srv/debconf-web/debconf19.debconf.org/dc19.dc.o/wsgi.py + WSGIPassAuthorization On + + + + Require all granted + + + + Alias /static/ /srv/debconf-web/debconf19.debconf.org/dc19.dc.o/localstatic/ + Alias /favicon.ico /srv/debconf-web/debconf19.debconf.org/dc19.dc.o/localstatic/img/favicon/favicon.ico + + Require all granted + + # A little hacky, but it means we won't accidentally catch non-hashed filenames + + ExpiresActive on + ExpiresDefault "access plus 1 year" + + + + Alias /media/ /srv/debconf-web/debconf19.debconf.org/dc19.dc.o/media/ + + Require all granted + + + + SSLOptions +StdEnvVars + # Allow access if one does not have a valid certificate + SSLVerifyClient optional + + + +# vim: set ft=apache: