Skip to content

Commit 172d79a

Browse files
committed
Upgrade to nginx 1.11.13
1 parent 619943a commit 172d79a

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM nginx:1.11.10
1+
FROM nginx:1.11.13
22
MAINTAINER Jason Wilder [email protected]
33

44
# Install wget and install/updates certificates

Dockerfile.alpine

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM nginx:1.11.10-alpine
1+
FROM nginx:1.11.13-alpine
22
MAINTAINER Jason Wilder [email protected]
33

44
# Install wget and install/updates certificates

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
![nginx 1.11.10](https://img.shields.io/badge/nginx-1.11.10-brightgreen.svg) ![License MIT](https://img.shields.io/badge/license-MIT-blue.svg) [![Build Status](https://travis-ci.org/jwilder/nginx-proxy.svg?branch=master)](https://travis-ci.org/jwilder/nginx-proxy) [![](https://img.shields.io/docker/stars/jwilder/nginx-proxy.svg)](https://hub.docker.com/r/jwilder/nginx-proxy 'DockerHub') [![](https://img.shields.io/docker/pulls/jwilder/nginx-proxy.svg)](https://hub.docker.com/r/jwilder/nginx-proxy 'DockerHub')
1+
![nginx 1.11.13](https://img.shields.io/badge/nginx-1.11.13-brightgreen.svg) ![License MIT](https://img.shields.io/badge/license-MIT-blue.svg) [![Build Status](https://travis-ci.org/jwilder/nginx-proxy.svg?branch=master)](https://travis-ci.org/jwilder/nginx-proxy) [![](https://img.shields.io/docker/stars/jwilder/nginx-proxy.svg)](https://hub.docker.com/r/jwilder/nginx-proxy 'DockerHub') [![](https://img.shields.io/docker/pulls/jwilder/nginx-proxy.svg)](https://hub.docker.com/r/jwilder/nginx-proxy 'DockerHub')
22

33

44
nginx-proxy sets up a container running nginx and [docker-gen][1]. docker-gen generates reverse proxy configs for nginx and reloads nginx when containers are started and stopped.

test/certs/create_server_certificate.sh

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ if [[ "$#" -eq 0 ]]; then
1111
1212
You can also create certificates for wildcard domains:
1313
$(basename $0) '*.my-domain.tdl'
14-
14+
1515
EOF
1616
exit 0
1717
else
@@ -24,8 +24,8 @@ fi
2424
# Create a nginx container (which conveniently provides the `openssl` command)
2525
###############################################################################
2626

27-
CONTAINER=$(docker run -d -v $DIR:/work -w /work -e SAN="$ALTERNATE_DOMAINS" nginx:1.11.8)
28-
# Configure openssl
27+
CONTAINER=$(docker run -d -v $DIR:/work -w /work -e SAN="$ALTERNATE_DOMAINS" nginx:1.11.13)
28+
# Configure openssl
2929
docker exec $CONTAINER bash -c '
3030
mkdir -p /ca/{certs,crl,private,newcerts} 2>/dev/null
3131
echo 1000 > /ca/serial
@@ -117,7 +117,7 @@ function openssl {
117117
}
118118

119119
function exitfail {
120-
echo
120+
echo
121121
echo ERROR: "$@"
122122
docker rm -f $CONTAINER
123123
exit 1
@@ -129,15 +129,15 @@ function exitfail {
129129
###############################################################################
130130

131131
if ! [[ -f "$DIR/ca-root.key" ]]; then
132-
echo
132+
echo
133133
echo "> Create a Certificate Authority root key: $DIR/ca-root.key"
134134
openssl genrsa -out ca-root.key 2048
135135
[[ $? -eq 0 ]] || exitfail failed to generate CA root key
136136
fi
137137

138-
# Create a CA root certificate
138+
# Create a CA root certificate
139139
if ! [[ -f "$DIR/ca-root.crt" ]]; then
140-
echo
140+
echo
141141
echo "> Create a CA root certificate: $DIR/ca-root.crt"
142142
openssl req -config /ca/openssl.cnf \
143143
-key ca-root.key \
@@ -154,30 +154,30 @@ fi
154154
# create server key and certificate signed by the certificate authority
155155
###############################################################################
156156

157-
echo
157+
echo
158158
echo "> Create a host key: $DIR/$DOMAIN.key"
159159
openssl genrsa -out "$DOMAIN.key" 2048
160160

161-
echo
161+
echo
162162
echo "> Create a host certificate signing request"
163163

164164
SAN="$ALTERNATE_DOMAINS" openssl req -config /ca/openssl.cnf \
165165
-key "$DOMAIN.key" \
166-
-new -out "/ca/$DOMAIN.csr" -days 1000 -extensions san_env -subj "/CN=$DOMAIN"
166+
-new -out "/ca/$DOMAIN.csr" -days 1000 -extensions san_env -subj "/CN=$DOMAIN"
167167
[[ $? -eq 0 ]] || exitfail failed to generate server certificate signing request
168168

169-
echo
169+
echo
170170
echo "> Create server certificate: $DIR/$DOMAIN.crt"
171171
SAN="$ALTERNATE_DOMAINS" openssl ca -config /ca/openssl.cnf -batch \
172172
-extensions server_cert \
173173
-extensions san_env \
174174
-in "/ca/$DOMAIN.csr" \
175-
-out "$DOMAIN.crt"
175+
-out "$DOMAIN.crt"
176176
[[ $? -eq 0 ]] || exitfail failed to generate server certificate
177177

178178

179179
# Verify host certificate
180-
#openssl x509 -noout -text -in "$DOMAIN.crt"
180+
#openssl x509 -noout -text -in "$DOMAIN.crt"
181181

182182

183183
docker rm -f $CONTAINER >/dev/null

0 commit comments

Comments
 (0)