File tree Expand file tree Collapse file tree 6 files changed +23
-13
lines changed Expand file tree Collapse file tree 6 files changed +23
-13
lines changed Original file line number Diff line number Diff line change @@ -139,6 +139,12 @@ The following settings may be altered without editing any project or
139
139
configuration files, by exporting these environment variables on
140
140
the host:
141
141
142
+ * ` NUMWAL_TLS_PRIVATE_KEY_URI ` : use this variable to change the URI
143
+ to the private key in the Nginx server.
144
+
145
+ * ` NUMWAL_TLS_PUBLIC_KEY_URI ` : use this variable to change the URI
146
+ to the public key certificate in the Nginx server.
147
+
142
148
* ` NUMWAL_CACHE_CLEAR ` : set to any integer 1 or higher to order the
143
149
underlying Fat Free Framework to clear caches.
144
150
Original file line number Diff line number Diff line change @@ -47,6 +47,8 @@ services:
47
47
NUMWAL_HTTP_PORT : 8080
48
48
NUMWAL_HTTPS_PORT : 443
49
49
NUMWAL_HOST : numwal
50
+ NUMWAL_TLS_PUBLIC_KEY_URI : ${NUMWAL_TLS_PUBLIC_KEY_URI:-/etc/ssl/keys/numwal-cert.pem}
51
+ NUMWAL_TLS_PRIVATE_KEY_URI : ${NUMWAL_TLS_PRIVATE_KEY_URI:-/etc/ssl/private/numwal-private.pem}
50
52
ports :
51
53
- 9080:8080
52
54
- 9443:443
Original file line number Diff line number Diff line change @@ -20,9 +20,9 @@ server {
20
20
listen [::]:${NUMWAL_HTTPS_PORT} ssl;
21
21
22
22
# Remember to change the certificate and private key filenames as required
23
- ssl_certificate /etc/ssl/keys/numwal-cert.pem ;
24
- ssl_certificate_key /etc/ssl/private/numwal-private.pem ;
25
-
23
+ ssl_certificate ${NUMWAL_TLS_PUBLIC_KEY_URI} ;
24
+ ssl_certificate_key ${NUMWAL_TLS_PRIVATE_KEY_URI} ;
25
+
26
26
location / {
27
27
index index.php index.html index.htm;
28
28
try_files $uri /index.php?query_string;
Original file line number Diff line number Diff line change 1
1
# TLS Certificate and Private Key Directory
2
2
3
- Place your certificate and private key in this directory, so the image build
4
- process can find them and insert them into your image.
3
+ Place your public key certificate in the ` keys/ ` directory, and your
4
+ private key in the ` private/ ` directory. Please do this only for
5
+ self-signed test keys.
5
6
6
- The Dockerfile expects your certificate (public key) to be named ` numwal.pem `
7
- and your private key to be named ` numwal-private.pem ` .
7
+ The key URIs may be set using the ` NUMWAL_TLS_PUBLIC_KEY_URI ` and
8
+ ` NUMWAL_TLS_PRIVATE_KEY_URI ` environment variables on the host before
9
+ building the containers.
8
10
9
- If you wish to use different names for keys, and/or source them from another
10
- path, please keep the Dockerfile ` Dockerfile-nginx-tls ` and the Nginx
11
- configuration file ` numwal-nginx ` in sync with these changes.
12
-
13
- ** PROTIP** : Triple-check your commits before you make them to watch for
14
- private key leaks!
11
+ ** PROTIP** : Triple-check your commits before you make them to watch
12
+ for private key leaks!
15
13
Original file line number Diff line number Diff line change
1
+ Put public key certificate in this directory...
Original file line number Diff line number Diff line change
1
+ Put private key in this directory...
2
+ Please do this for self-signed test keys only.
3
+ For a more secure setup, use a secure key server.
You can’t perform that action at this time.
0 commit comments