|
@@ -60,19 +60,17 @@ CONNECTION_REFUSED_RE = re.compile("Connection refused")
|
|
("nodefault.yml", "http://unknown.nginx-proxy.test/", 503, None),
|
|
("nodefault.yml", "http://unknown.nginx-proxy.test/", 503, None),
|
|
("nodefault.yml", "https://unknown.nginx-proxy.test/", None, INTERNAL_ERR_RE),
|
|
("nodefault.yml", "https://unknown.nginx-proxy.test/", None, INTERNAL_ERR_RE),
|
|
# HTTPS_METHOD=nohttp on nginx-proxy, HTTPS_METHOD unset on the app container.
|
|
# HTTPS_METHOD=nohttp on nginx-proxy, HTTPS_METHOD unset on the app container.
|
|
- ("nohttp.yml", "http://https-only.nginx-proxy.test/", None, CONNECTION_REFUSED_RE),
|
|
|
|
|
|
+ ("nohttp.yml", "http://https-only.nginx-proxy.test/", 503, None),
|
|
("nohttp.yml", "https://https-only.nginx-proxy.test/", 200, None),
|
|
("nohttp.yml", "https://https-only.nginx-proxy.test/", 200, None),
|
|
- ("nohttp.yml", "http://unknown.nginx-proxy.test/", None, CONNECTION_REFUSED_RE),
|
|
|
|
|
|
+ ("nohttp.yml", "http://unknown.nginx-proxy.test/", 503, None),
|
|
("nohttp.yml", "https://unknown.nginx-proxy.test/", 503, None),
|
|
("nohttp.yml", "https://unknown.nginx-proxy.test/", 503, None),
|
|
# HTTPS_METHOD=redirect on nginx-proxy, HTTPS_METHOD=nohttp on the app container.
|
|
# HTTPS_METHOD=redirect on nginx-proxy, HTTPS_METHOD=nohttp on the app container.
|
|
- ("nohttp-on-app.yml", "http://https-only.nginx-proxy.test/", None, CONNECTION_REFUSED_RE),
|
|
|
|
|
|
+ ("nohttp-on-app.yml", "http://https-only.nginx-proxy.test/", 503, None),
|
|
("nohttp-on-app.yml", "https://https-only.nginx-proxy.test/", 200, None),
|
|
("nohttp-on-app.yml", "https://https-only.nginx-proxy.test/", 200, None),
|
|
- ("nohttp-on-app.yml", "http://unknown.nginx-proxy.test/", None, CONNECTION_REFUSED_RE),
|
|
|
|
|
|
+ ("nohttp-on-app.yml", "http://unknown.nginx-proxy.test/", 503, None),
|
|
("nohttp-on-app.yml", "https://unknown.nginx-proxy.test/", 503, None),
|
|
("nohttp-on-app.yml", "https://unknown.nginx-proxy.test/", 503, None),
|
|
# Same as nohttp.yml, except there is a vhost with a missing cert. This causes its
|
|
# Same as nohttp.yml, except there is a vhost with a missing cert. This causes its
|
|
- # HTTPS_METHOD=nohttp setting to effectively become HTTPS_METHOD=noredirect. This means that
|
|
|
|
- # there will be a plain http server solely to support that vhost, so http requests to other
|
|
|
|
- # vhosts get a 503, not a connection refused error.
|
|
|
|
|
|
+ # HTTPS_METHOD=nohttp setting to effectively become HTTPS_METHOD=noredirect.
|
|
("nohttp-with-missing-cert.yml", "http://https-only.nginx-proxy.test/", 503, None),
|
|
("nohttp-with-missing-cert.yml", "http://https-only.nginx-proxy.test/", 503, None),
|
|
("nohttp-with-missing-cert.yml", "https://https-only.nginx-proxy.test/", 200, None),
|
|
("nohttp-with-missing-cert.yml", "https://https-only.nginx-proxy.test/", 200, None),
|
|
("nohttp-with-missing-cert.yml", "http://missing-cert.nginx-proxy.test/", 200, None),
|
|
("nohttp-with-missing-cert.yml", "http://missing-cert.nginx-proxy.test/", 200, None),
|