Skip to content

Commit 3fc019c

Browse files
committed
Documented EXTRANAMES variable
1 parent eeea5a3 commit 3fc019c

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

README.md

+3-6
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ It is configured by setting two environment variables:
88
* `UPSTREAM` - The IP address or hostname (and optional port) of the upstream server to proxy requests towards.
99
* `SERVERNAME` - The hostname to listen to. The system will automatically obtain an SSL certificate for this hostname.
1010

11+
An optional `EXTRANAMES` variable can be provided with a list of additional domains to request as subject-alternative-names for the certificate.
12+
1113
Certificates from Let's Encrypt are issued with a 90 day expiration. This image will automatically renew the certificate when it is 60 days old.
1214

1315
Prior versions of this image used simp_le. It has been changed to use certbot due to reliability issues with simp_le.
@@ -30,6 +32,7 @@ Create a docker-compose.yml file as follows:
3032
environment:
3133
UPSTREAM: 127.0.0.1:8080
3234
SERVERNAME: test.example.com
35+
EXTRANAMES: www.test.example.com,test2.example.com
3336
ports:
3437
- "80:80"
3538
- "443:443"
@@ -66,12 +69,6 @@ Reasonable defaults have been chosen with an eye towards a configuration which i
6669
* [envplate](https://github.com/kreuzwerker/envplate) - for allowing use of environment variables in Nginx configuration
6770
* [s6-overlay](https://github.com/just-containers/s6-overlay) - for PID 1, process supervision, zombie reaping
6871

69-
## Known Issues (Contributions Welcome!)
70-
71-
* This image is a beast. As no external process produces build artifacts for inclusion into this image, it's larger than I'd like.
72-
* Currently only easily supports proxying a single hostname to a single backend server.
73-
* Requesting a certificate with both SERVERNAME and www.SERVERNAME as SANs may ease common deployment problems.
74-
7572
# Issues, Contributing
7673

7774
If you run into any problems with this image, please check for issues on [GitHub](https://github.com/DanielDent/docker-nginx-ssl-proxy/issues).

0 commit comments

Comments
 (0)