Enable HTTP/2 on sources.d.o
[mirror/dsa-puppet.git] / modules / roles / files / debsources / sources.debian.org.conf
1 Use common-debian-service-https-redirect * sources.debian.org
2
3 WSGIDaemonProcess sources.debian.org user=nobody group=debsources home=/ processes=2 threads=5 maximum-requests=5000 inactivity-timeout=1800 umask=0077 display-name=wsgi-debsources.debian.org
4
5 <VirtualHost *:443>
6     ServerName sources.debian.org
7     ServerAdmin debian-admin@lists.debian.org
8
9     Use common-debian-service-ssl sources.debian.org
10     Use common-ssl-HSTS
11     Use http-pkp-sources.debian.org
12
13     Protocols h2 http/1.1
14
15     <IfModule mod_userdir.c>
16         UserDir disabled
17     </IfModule>
18     ErrorLog /var/log/apache2/sources.debian.org-error.log
19     CustomLog /var/log/apache2/sources.debian.org-access.log privacy
20     ServerSignature On
21
22     <Directory /srv/sources.debian.org/sources>
23         Options Indexes
24         AllowOverride None
25         DirectoryIndex disabled
26         IndexOptions +ShowForbidden -FancyIndexing -HTMLTable +SuppressHTMLPreamble +XHTML
27         # Note: mods-enabled/autoindex.conf has IndexIgnore set to
28         # ignore all hidden files by default. For +ShowForbidden to be
29         # practically useful, that entry should be commented out (or
30         # reset'd with IndexOptionsReset, but only starting from Apache
31         # 2.3).
32
33         Require all granted
34         <Files ~ "^\.ht">
35             # override default (Debian) setting in /etc/apache2/apache2.conf
36             # we want to list .htaccess and friends if they are part of packages.
37             Require all granted
38         </Files>
39
40         SetHandler None
41         # ForceType text/plain
42     </Directory>
43
44     <Directory /srv/sources.debian.org/static>
45         Options FollowSymLinks
46         Require all granted
47     </Directory>
48
49     Alias /data/ /srv/sources.debian.org/sources/
50     Alias /static/ /srv/sources.debian.org/static/
51
52     <Directory /srv/sources.debian.org/etc>
53         <Files debsources.wsgi>
54             Require all granted
55         </Files>
56     </Directory>
57
58     WSGIScriptAlias / /srv/sources.debian.org/etc/debsources.wsgi
59     WSGIProcessGroup sources.debian.org
60 </VirtualHost>
61
62 # vim: syntax=apache ts=4 sw=4 sts=4 sr et