-
Notifications
You must be signed in to change notification settings - Fork 123
/
pulp_rpm.conf
86 lines (72 loc) · 2.89 KB
/
pulp_rpm.conf
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# Apache configuration file for pulp web services and repositories
#
# Copyright © 2010 Red Hat, Inc.
#
# This software is licensed to you under the GNU General Public License,
# version 2 (GPLv2). There is NO WARRANTY for this software, express or
# implied, including the implied warranties of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. You should have received a copy of GPLv2
# along with this software; if not, see
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
#
# Red Hat trademarks are not licensed under GPLv2. No permission is
# granted to use or replicate Red Hat trademarks that are incorporated
# in this software or its documentation.
AddType application/x-pkcs7-crl .crl
AddType application/x-x509-ca-cert .crt
# -- Yum Repositories ---------
#
# This Location block replaces an `Alias` directive. In order to maintain
# backwards compatibility with existing Yum repository configurations, this
# block rewrites all requests to `/pulp/repos/` to the location of the WSGI
# application, content.wsgi, provided by the Pulp platform. The content.wsgi
# application adds support for downloading content on-demand.
<Location /pulp/repos/>
RewriteEngine On
RewriteCond %{HTTPS} on
RewriteRule (.+/pulp/repos/)(.*) /pulp/content/var/www/pub/yum/https/repos/$2 [DPI]
RewriteCond %{HTTPS} off
RewriteRule (.+/pulp/repos/)(.*) /pulp/content/var/www/pub/yum/http/repos/$2 [DPI]
# The following rules rewrite requests to show repoview content if it exists.
RewriteCond %{HTTPS} on
RewriteCond %{REQUEST_URI} (.*/pulp/repos/)(.*)
RewriteCond "/var/www/pub/yum/https/repos/%2repoview/index.html" -f
RewriteRule "^(.+)" "%{REQUEST_URI}repoview/index.html" [R]
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} (.*/pulp/repos/)(.*)
RewriteCond "/var/www/pub/yum/http/repos/%2repoview/index.html" -f
RewriteRule "^(.+)" "%{REQUEST_URI}repoview/index.html" [R]
</Location>
# -- HTTPS Exports
Alias /pulp/exports /var/www/pub/yum/https/exports
<Directory /var/www/pub/yum/https>
WSGIAccessScript /usr/share/pulp/wsgi/repo_auth.wsgi
SSLRequireSSL
SSLVerifyClient optional
SSLVerifyDepth 9
SSLOptions +StdEnvVars +ExportCertData +FakeBasicAuth
Options FollowSymLinks Indexes
</Directory>
# -- HTTP Repositories ---------
<Directory /var/www/pub/yum/http>
Options FollowSymLinks Indexes
</Directory>
# -- HTTPS ISOS
Alias /pulp/isos /var/www/pub/https/isos
<Directory /var/www/pub/https/isos>
WSGIAccessScript /usr/share/pulp/wsgi/repo_auth.wsgi
SSLRequireSSL
SSLVerifyClient optional_no_ca
SSLVerifyDepth 2
SSLOptions +StdEnvVars +ExportCertData +FakeBasicAuth
Options FollowSymLinks Indexes
</Directory>
# --- HTTP ISOS
<Directory /var/www/pub/http/isos >
Options FollowSymLinks Indexes
</Directory>
# -- GPG Keys -------------------
Alias /pulp/gpg /var/www/pub/gpg
<Directory /var/www/pub/gpg/>
Options FollowSymLinks Indexes
</Directory>