Skip to content

Commit 8ce5d7f

Browse files
authored
Ability to change the SSL_POLICY (#170)
* Ability to set SSL_POLICY * SSL_POLICY for docker-compose-multiple-networks.yml
1 parent 01f3f2d commit 8ce5d7f

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

.env.sample

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,10 @@ NGINX_FILES_PATH=./nginx-data
9393
#
9494
#DOCKER_HTTP=80
9595
#DOCKER_HTTPS=443
96+
97+
98+
#
99+
# Set the SSL policy (defaults to Mozilla-Intermediate).
100+
# See available options here: https://github.com/jwilder/nginx-proxy#how-ssl-support-works
101+
#
102+
#SSL_POLICY=Mozilla-Modern

docker-compose-multiple-networks.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ services:
2929
command: -notify-sighup ${NGINX_WEB:-nginx-web} -watch -wait 5s:30s /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf
3030
container_name: ${DOCKER_GEN:-nginx-gen}
3131
restart: always
32+
environment:
33+
SSL_POLICY: ${SSL_POLICY:-Mozilla-Intermediate}
3234
volumes:
3335
- ${NGINX_FILES_PATH:-./data}/conf.d:/etc/nginx/conf.d
3436
- ${NGINX_FILES_PATH:-./data}/vhost.d:/etc/nginx/vhost.d

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ services:
2626
command: -notify-sighup ${NGINX_WEB:-nginx-web} -watch -wait 5s:30s /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf
2727
container_name: ${DOCKER_GEN:-nginx-gen}
2828
restart: always
29+
environment:
30+
SSL_POLICY: ${SSL_POLICY:-Mozilla-Intermediate}
2931
volumes:
3032
- ${NGINX_FILES_PATH:-./data}/conf.d:/etc/nginx/conf.d
3133
- ${NGINX_FILES_PATH:-./data}/vhost.d:/etc/nginx/vhost.d

0 commit comments

Comments
 (0)