Skip to content

Commit

Permalink
Merge pull request #17 from ehelms/client-request
Browse files Browse the repository at this point in the history
Adding previously used header setting and older RHSM configuration
  • Loading branch information
ehelms committed Mar 11, 2014
2 parents ab9e13d + a448786 commit 60cc4d4
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion templates/etc/httpd/conf.d/05-foreman-ssl.d/katello.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# CHANGES WILL LIKELY BE OVERWRITTEN.
#

SSLOptions +StdEnvVars +ExportCertData +FakeBasicAuth

Alias /pub /var/www/html/pub
<Location /pub>
PassengerEnabled off
Expand All @@ -16,4 +18,14 @@ Alias /pub /var/www/html/pub
SSLVerifyDepth 2
</Location>

SSLOptions +StdEnvVars +ExportCertData +FakeBasicAuth
<Location /katello/api>
# client certs support (old rhsm clients)
RequestHeader set SSL_CLIENT_CERT "%{SSL_CLIENT_CERT}s"
SSLVerifyClient optional
SSLRenegBufferSize 16777216
SSLVerifyDepth 2

# report to CLI and RHSM nicely when Katello is down
ErrorDocument 500 '{"displayMessage": "Internal error, contact administrator", "errors": ["Internal error, contact administrator"], "status": "500" }'
ErrorDocument 503 '{"displayMessage": "Service unavailable or restarting, try later", "errors": ["Service unavailable or restarting, try later"], "status": "503" }'
</Location>

0 comments on commit 60cc4d4

Please sign in to comment.