1
0
mirror of https://github.com/thib8956/nginx-proxy synced 2025-06-30 22:05:46 +00:00

Allow passing DHPARAM_BITS via env, lower bits to 256 for unit tests

This commit is contained in:
Steve Kamerman
2017-01-12 14:55:25 -05:00
parent dffc0c47cf
commit 7d253dd0f3
3 changed files with 10 additions and 5 deletions

View File

@ -15,7 +15,8 @@ if [[ $DOCKER_HOST = unix://* ]]; then
fi
# Generate dhparam file if required
/app/generate-dhparam.sh
# Note: if $DHPARAM_BITS is not defined, generate-dhparam.sh will use 2048 as a default
/app/generate-dhparam.sh $DHPARAM_BITS
# If the user has run the default command and the socket doesn't exist, fail
if [ "$socketMissing" = 1 -a "$1" = forego -a "$2" = start -a "$3" = '-r' ]; then