Skip to content
This repository has been archived by the owner on May 7, 2020. It is now read-only.

Commit

Permalink
Merge pull request #158 from cfpb/master
Browse files Browse the repository at this point in the history
Add recent auth-proxy fixes to v1.12.x branch
  • Loading branch information
kgudel authored Sep 5, 2017
2 parents 0feb56d + 91e0138 commit c0f46d1
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
1 change: 1 addition & 0 deletions auth-proxy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ ENV DL_SITE https://github.com/pingidentity/mod_auth_openidc/releases/download/
ENV HTTPD_USER apache

RUN yum install -y epel-release && \
yum-config-manager --enable cr && \
yum update -y && \
yum install -y hiredis httpd jansson && \
curl -sL -o /tmp/${CJOSE_PKG} ${DL_SITE}/v${CJOSE_OIDC_VER}/${CJOSE_PKG} && \
Expand Down
2 changes: 1 addition & 1 deletion auth-proxy/conf/etc/httpd/conf.d/00-security.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This directive configures what you return as the Server HTTP response
# Header. The default is 'Full' which sends information about the OS-Type
# and compiled in modules.
ServerTokens Minor
ServerTokens Prod

# Disable TRACE method
TraceEnable Off
Expand Down
19 changes: 18 additions & 1 deletion auth-proxy/conf/etc/httpd/conf/httpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,19 @@ ServerRoot "/etc/httpd"
# Load Apache modules
Include conf.modules.d/*.conf

# Baseline settings
LimitRequestFieldSize 8190
LimitRequestLine 8190
LimitRequestBody 1073741824
LimitRequestFields 100
MaxClients 256
StartServers 3
KeepAlive On
KeepAliveTimeout 5
TimeOut 60




# ServerName gives the name and port that the server uses to identify itself.
ServerName "localhost"
Expand All @@ -24,6 +37,7 @@ Group apache
# Deny access to the entirety of your server's filesystem.
<Directory />
AllowOverride none
Options None
Require all denied
</Directory>

Expand All @@ -34,7 +48,10 @@ DocumentRoot "/var/www/html"

# Simple JSON-based status endpoint for /
<Directory "/var/www/html">
Options FollowSymLinks Indexes IncludesNoExec
<LimitExcept GET POST OPTIONS>
Require all denied
</LimitExcept>
Options -FollowSymLinks -Indexes +IncludesNoExec -MultiViews
AddOutputFilter Includes .json
DirectoryIndex index.json
AllowOverride None
Expand Down

0 comments on commit c0f46d1

Please sign in to comment.