Another attempt at #29550, which was reverted. Fallback is not happening if cert provisioning fails _despite_ having the correct header. But with the changes in this PR, since we'll listen on `:80`, fallback _will_ happen when cert provisioning fails due to incorrect domain configuration. We're also adding [Hurl](https://hurl.dev) based tests. They're not run in any CI yet. That'll come in soon.
28 lines
572 B
Plaintext
28 lines
572 B
Plaintext
GET http://custom-domain.com
|
|
HTTP 302
|
|
Location: https://custom-domain.com/
|
|
[Asserts]
|
|
header "Server" not exists
|
|
|
|
GET http://custom-domain.com/random/path
|
|
HTTP 302
|
|
Location: https://custom-domain.com/random/path
|
|
[Asserts]
|
|
header "Server" not exists
|
|
|
|
GET https://custom-domain.com
|
|
HTTP 200
|
|
[Asserts]
|
|
header "Server" not exists
|
|
certificate "Issuer" == "CN = Caddy Local Authority - ECC Intermediate"
|
|
|
|
GET https://custom-domain.com/random/path
|
|
HTTP 200
|
|
[Asserts]
|
|
header "Server" not exists
|
|
|
|
GET https://custom-domain.com/static/x
|
|
HTTP 404
|
|
[Asserts]
|
|
header "Server" not exists
|