Project

Profile

Help

Issue #3129 » gunicorn_working_with_pulp.diff

bmbouter, 12/07/2017 09:49 PM

View differences:

server/etc/httpd/conf.d/pulp_apache_24.conf
# allow older yum clients to connect, see bz 647828
SSLInsecureRenegotiation on
WSGIProcessGroup pulp
WSGIApplicationGroup pulp
WSGIDaemonProcess pulp user=apache group=apache processes=3 display-name=%{GROUP}
<Location /pulp/api>
ProxyPass http://localhost:8000/
ProxyPassReverse http://localhost:8000/
Order allow,deny
Allow from all
</Location>
#WSGIProcessGroup pulp
#WSGIApplicationGroup pulp
#WSGIDaemonProcess pulp user=apache group=apache processes=3 display-name=%{GROUP}
# DEBUG - uncomment the next 2 lines to enable debugging
#WSGIRestrictStdin Off
#WSGIRestrictStdout Off
WSGISocketPrefix run/wsgi
WSGIScriptAlias /pulp/api /usr/share/pulp/wsgi/webservices.wsgi
WSGIImportScript /usr/share/pulp/wsgi/webservices.wsgi process-group=pulp application-group=pulp
<Directory /usr/share/pulp/wsgi>
Require all granted
</Directory>
<Files webservices.wsgi>
WSGIPassAuthorization On
WSGIProcessGroup pulp
WSGIApplicationGroup pulp
SSLRenegBufferSize 1048576
SSLRequireSSL
SSLVerifyDepth 3
SSLOptions +StdEnvVars +ExportCertData
SSLVerifyClient optional
</Files>
#WSGISocketPrefix run/wsgi
#WSGIScriptAlias /pulp/api /usr/share/pulp/wsgi/webservices.wsgi
#WSGIImportScript /usr/share/pulp/wsgi/webservices.wsgi process-group=pulp application-group=pulp
#<Directory /usr/share/pulp/wsgi>
# Require all granted
#</Directory>
#<Files webservices.wsgi>
# WSGIPassAuthorization On
# WSGIProcessGroup pulp
# WSGIApplicationGroup pulp
# SSLRenegBufferSize 1048576
# SSLRequireSSL
# SSLVerifyDepth 3
# SSLOptions +StdEnvVars +ExportCertData
# SSLVerifyClient optional
#</Files>
<VirtualHost *:80>
IncludeOptional /etc/pulp/vhosts80/*.conf
server/pulp/server/webservices/http.py
Return the current URI path
@return: full current URI path
"""
return unicode(_thread_local.wsgi_environ['REQUEST_URI'])
return unicode(_thread_local.wsgi_environ['RAW_URI'])
def extend_uri_path(suffix, prefix=None):
server/pulp/server/webservices/views/decorators.py
"""
# Check Authentication
# Run through each registered and enabled auth function
return method(self, *args, **kwargs)
is_consumer = False
registered_auth_functions = [check_preauthenticated,
password_authentication,
(3-3/3)