1
0
Fork 0
mirror of https://github.com/nginx-proxy/nginx-proxy synced 2024-05-25 00:46:18 +02:00
nginx-proxy/test/test_ssl/test_dhparam.yml
polarathene 1d2f308cdf feat: Bring back ability to skip default DH params
Adds back the ability to avoid using DH params, provided no file was explicitly supplied.

This used to be `DHPARAM_GENERATION=false`, the equivalent is now `DHPARAM_SKIP=1` (default 0). Previous name was no longer appropriate.

Ensures that if a user has explicitly provided their own dhparam file to still output a warning instead of the skip message, since `DHPARAM_SKIP=1` doesn't disable the support in nginx.
2021-09-28 21:59:53 +13:00

50 lines
1.2 KiB
YAML

web5:
image: web
expose:
- "85"
environment:
WEB_PORTS: "85"
VIRTUAL_HOST: "web5.nginx-proxy.tld"
# sut - System Under Test
with_default_group:
image: nginxproxy/nginx-proxy:test
container_name: dh-default
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./certs:/etc/nginx/certs:ro
with_alternative_group:
image: nginxproxy/nginx-proxy:test
container_name: dh-env
environment:
- DHPARAM_BITS=2048
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./certs:/etc/nginx/certs:ro
with_invalid_group:
image: nginxproxy/nginx-proxy:test
container_name: invalid-group-1024
environment:
- DHPARAM_BITS=1024
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./certs:/etc/nginx/certs:ro
with_custom_file:
image: nginxproxy/nginx-proxy:test
container_name: dh-file
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./certs:/etc/nginx/certs:ro
- ../lib/ssl/dhparam.pem:/etc/nginx/dhparam/dhparam.pem:ro
with_skip:
image: nginxproxy/nginx-proxy:test
container_name: dh-skip
environment:
- DHPARAM_SKIP=1
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./certs:/etc/nginx/certs:ro