diff options
author | Đỗ Trọng Hải <[email protected]> | 2023-10-11 04:46:39 +0700 |
---|---|---|
committer | GitHub <[email protected]> | 2023-10-10 21:46:39 +0000 |
commit | df9950297793fbe3930cd3151b6f1a3cea893a38 (patch) | |
tree | 94c887fec0c54d8d44858a23fafab89d77743bd3 /caddytest | |
parent | e0aaefab80d75293783a5551b094cf57b49da8d5 (diff) | |
download | caddy-df9950297793fbe3930cd3151b6f1a3cea893a38.tar.gz caddy-df9950297793fbe3930cd3151b6f1a3cea893a38.zip |
httpcaddyfile: Enable TLS for catch-all site if `tls` directive is specified (#5808)
Diffstat (limited to 'caddytest')
-rw-r--r-- | caddytest/integration/caddyfile_adapt/enable_tls_for_catch_all_site.txt | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/caddytest/integration/caddyfile_adapt/enable_tls_for_catch_all_site.txt b/caddytest/integration/caddyfile_adapt/enable_tls_for_catch_all_site.txt new file mode 100644 index 000000000..b37b40c00 --- /dev/null +++ b/caddytest/integration/caddyfile_adapt/enable_tls_for_catch_all_site.txt @@ -0,0 +1,37 @@ +:8443 { + tls internal { + on_demand + } +} +---------- +{ + "apps": { + "http": { + "servers": { + "srv0": { + "listen": [ + ":8443" + ], + "tls_connection_policies": [ + {} + ] + } + } + }, + "tls": { + "automation": { + "policies": [ + { + "issuers": [ + { + "module": "internal" + } + ], + "on_demand": true + } + ] + } + } + } +} + |