blob: cc0e437abded3a19fbaa15faa46a7a57190d7fdf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
<%
# FIXME: add a reverse lookup for IPv6 adresses
# allowed hosts are: valstar, ecosse, jonund
# Which ip is 2a02:2178:2:7::5/64 ?
buildsystem_nodes = "2a02:2178:2:7::3/64 2a02:2178:2:7::4/64 2a02:2178:2:7::5/64 fe80::230:48ff:fecf:101c/64"
mirror_root = scope.lookupvar('buildsystem::var::repository::mirror_root')
%>
<VirtualHost *:80>
ServerName <%= scope.lookupvar('buildsystem::var::repository::hostname') %>
DocumentRoot <%= mirror_root %>
Alias /distrib/infra_1/ "/distrib/bootstrap/distrib/infra_1/"
Alias /distrib/infra_2/ "/distrib/bootstrap/distrib/infra_2/"
<Directory <%= mirror_root %>>
Order deny,allow
Deny from all
Allow from localhost, 127.0.0.1
Allow from <%= buildsystem_nodes %>
Allow from .<%= @domain %>
Allow from 10.42.0
# FIXME: add a reverse lookup for rabbit
Allow from 212.85.158.152 212.85.158.149
Options Indexes FollowSymLinks
</Directory>
<Directory /distrib/bootstrap/distrib/infra_1>
Header append Cache-Control "public, must-revalidate"
Order deny,allow
Allow from all
Options Indexes FollowSymLinks
</Directory>
<Directory /distrib/bootstrap/distrib/infra_2>
Header append Cache-Control "public, must-revalidate"
Order deny,allow
Allow from all
Options Indexes FollowSymLinks
</Directory>
</VirtualHost>
|