Skip to content

Commit

Permalink
Merge pull request #138 from UKHomeOffice/issue-2239
Browse files Browse the repository at this point in the history
parameterised ssl_session_timeout
  • Loading branch information
David James authored Aug 10, 2021
2 parents d8133a7 + a7aaba2 commit d38f7bf
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ steps:
from_secret: docker_password
DOCKER_REPO: artifactory-internal.digital.homeoffice.gov.uk
DOCKER_USERNAME: docker-nginx-proxy-robot
depends_on:
- build_and_test_image
when:
event:
- tag
Expand All @@ -67,6 +69,8 @@ steps:
from_secret: docker_quay_password
DOCKER_REPO: quay.io
DOCKER_USERNAME: ukhomeofficedigital+nginx_proxy
depends_on:
- build_and_test_image
when:
event:
- tag
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ This is useful when testing or for development instances or when a load-balancer
* `SERVER_KEY` - Can override where to find the server's SSL key.
* `SSL_CIPHERS` - Change the SSL ciphers support default only AES256+EECDH:AES256+EDH:!aNULL
* `SSL_PROTOCOLS` - Change the SSL protocols supported default only TLSv1.2
* `SSL_SESSION_TIMEOUT` - Specifies a time during which a client may reuse the session parameters (defaults to 10min)
* `HTTP_LISTEN_PORT` - Change the default inside the container from 10080.
* `HTTPS_LISTEN_PORT` - Change the default inside the container from 10443.
* `HTTPS_REDIRECT` - Toggle whether or not we force redirects to HTTPS. Defaults to true.
Expand Down
1 change: 1 addition & 0 deletions defaults.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export SERVER_CERT=${SERVER_CERT:-/etc/keys/crt}
export SERVER_KEY=${SERVER_KEY:-/etc/keys/key}
export SSL_CIPHERS=${SSL_CIPHERS:-'AES256+EECDH:AES256+EDH:!aNULL'}
export SSL_PROTOCOLS=${SSL_PROTOCOLS:-'TLSv1.2'}
export SSL_SESSION_TIMEOUT=${SSL_SESSION_TIMEOUT:-'10m'}
export HTTP_LISTEN_PORT=${HTTP_LISTEN_PORT:-10080}
export HTTPS_LISTEN_PORT=${HTTPS_LISTEN_PORT:-10443}
export HTTPS_REDIRECT=${HTTPS_REDIRECT:-'TRUE'}
Expand Down
2 changes: 1 addition & 1 deletion go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ cat > ${NGIX_CONF_DIR}/server_certs.conf <<-EOF_CERT_CONF
ssl_ciphers ${SSL_CIPHERS};
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
ssl_session_timeout ${SSL_SESSION_TIMEOUT};
ssl_stapling on;
ssl_dhparam ${NGIX_CONF_DIR}/dhparam.pem;
EOF_CERT_CONF
Expand Down

0 comments on commit d38f7bf

Please sign in to comment.