Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Environment variables:
* `BACKEND` - to requests are proxied to (_mandatory_)
* `PROXY_HOST` - the hostname the proxy is available - falls back to the host name of the container.
* `SCHEMA` - the schema via the proxy is available (defaults to `https`) - _Note:_ This is not the protocol how the proxy accepts. SSL termination is not a responsibility of this image.
* `DISABLE_SSL_VERIFY` - disabled ssl verification, use if the backend SSL certificate is invalid (defaults to false).
* `REMOTE_USER_EMAIL_SAML_ATTRIBUTE` - the SAML attribute to be sent as `Remote-User-Name header`
* `REMOTE_USER_NAME_SAML_ATTRIBUTE` - the SAML attribute to be sent as `Remote-User-Email`
* `REMOTE_USER_PREFERRED_USERNAME_SAML_ATTRIBUTE` - the SAML attribute to be sent as `Remote-User-Preferred-Username`
Expand Down
10 changes: 10 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,15 @@ export REQUEST_HEADERS
# configure Apache proxy and auth
cat /etc/httpd/conf.d/proxy.conf.template | envsubst '$SCHEMA,$HOST,$BACKEND,$MELLON_PATH,$REQUEST_HEADERS' > /etc/httpd/conf.d/proxy.conf

# Support proxy resutsts to SSL backend
echo "SSLProxyEngine on" >> /etc/httpd/conf.d/ssl.conf

if [ -n "$DISABLE_SSL_VERIFY" ]; then
# Ignore SSL certificate validity
echo "SSLProxyCheckPeerName off" >> /etc/httpd/conf.d/ssl.conf
echo "SSLProxyVerify none" >> /etc/httpd/conf.d/ssl.conf
echo "SSLProxyCheckPeerExpire off" >> /etc/httpd/conf.d/ssl.conf
fi

# Start apache
httpd -DFOREGROUND