nginx-proxy-auto-docker/test/test_ssl
Dakota Hawkins 9bad218f23
Add vhost.d includes to nginx.tmpl's https redirect server block
Adds customization points to https redirect responses that are analogous
to other response handling. This gives you the opportunity to add
response headers or etc. before returning the 301 redirect.

If `$host` or `default` exist in `/etc/nginx/vhost.d/`, we rely on
nginx-proxy/acme-companion to add the Let's Encrypt acme challenge
location block there, so it's only included here if those files don't
exist.

New tests in `test_ssl` are similar to tests in `test_custom`, except they
expect 301 responses along with custom configs.

Fixes #1613
2021-08-03 08:58:29 +02:00
..
certs TESTS: replace old test suite with the new one 2017-02-17 00:29:30 +01:00
wildcard_cert_and_nohttps ci: remove InsecureRequestWarning from urllib3 2021-08-02 18:09:34 +02:00
test_dhparam.py chore(ci): ♻️ convert Python old % string to f-strings 2021-04-27 00:35:20 +02:00
test_dhparam.yml chore: use nginxproxy's DockerHub registry 2021-04-01 16:06:09 +02:00
test_dhparam_generation.py fix(ci): fix test_dhparam_is_generated_if_missing 2021-04-27 00:35:20 +02:00
test_dhparam_generation.yml chore: use nginxproxy's DockerHub registry 2021-04-01 16:06:09 +02:00
test_hsts.py chore: use nginxproxy's DockerHub registry 2021-04-01 16:06:09 +02:00
test_hsts.yml chore: use nginxproxy's DockerHub registry 2021-04-01 16:06:09 +02:00
test_https_port.py test: custom HTTPS port and redirection 2021-06-15 00:38:32 +02:00
test_https_port.yml test: custom HTTPS port and redirection 2021-06-15 00:38:32 +02:00
test_nohttp.py TESTS: replace old test suite with the new one 2017-02-17 00:29:30 +01:00
test_nohttp.yml chore: use nginxproxy's DockerHub registry 2021-04-01 16:06:09 +02:00
test_nohttps.py TESTS: replace old test suite with the new one 2017-02-17 00:29:30 +01:00
test_nohttps.yml chore: use nginxproxy's DockerHub registry 2021-04-01 16:06:09 +02:00
test_noredirect.py TESTS: replace old test suite with the new one 2017-02-17 00:29:30 +01:00
test_noredirect.yml chore: use nginxproxy's DockerHub registry 2021-04-01 16:06:09 +02:00
test_redirect_custom_defaults-location.py Add vhost.d includes to nginx.tmpl's https redirect server block 2021-08-03 08:58:29 +02:00
test_redirect_custom_defaults-location.yml Add vhost.d includes to nginx.tmpl's https redirect server block 2021-08-03 08:58:29 +02:00
test_redirect_custom_defaults.py Add vhost.d includes to nginx.tmpl's https redirect server block 2021-08-03 08:58:29 +02:00
test_redirect_custom_defaults.yml Add vhost.d includes to nginx.tmpl's https redirect server block 2021-08-03 08:58:29 +02:00
test_redirect_custom_location-per-vhost.py Add vhost.d includes to nginx.tmpl's https redirect server block 2021-08-03 08:58:29 +02:00
test_redirect_custom_location-per-vhost.yml Add vhost.d includes to nginx.tmpl's https redirect server block 2021-08-03 08:58:29 +02:00
test_redirect_custom_per-vhost.py Add vhost.d includes to nginx.tmpl's https redirect server block 2021-08-03 08:58:29 +02:00
test_redirect_custom_per-vhost.yml Add vhost.d includes to nginx.tmpl's https redirect server block 2021-08-03 08:58:29 +02:00
test_wildcard.py chore(ci): ♻️ convert Python old % string to f-strings 2021-04-27 00:35:20 +02:00
test_wildcard.yml chore: use nginxproxy's DockerHub registry 2021-04-01 16:06:09 +02:00