|
@@ -25,3 +25,10 @@ def test_noredirect_acme_challenge_location_disabled(docker_compose, nginxproxy,
|
|
allow_redirects=False
|
|
allow_redirects=False
|
|
)
|
|
)
|
|
assert r.status_code == 404
|
|
assert r.status_code == 404
|
|
|
|
+
|
|
|
|
+def test_unknown_domain_acme_challenge_location_default_enabled(docker_compose, nginxproxy, acme_challenge_path):
|
|
|
|
+ r = nginxproxy.get(
|
|
|
|
+ f"http://web-unknown.nginx-proxy.tld/{acme_challenge_path}",
|
|
|
|
+ allow_redirects=False
|
|
|
|
+ )
|
|
|
|
+ assert r.status_code == 503
|