aboutsummaryrefslogtreecommitdiffhomepage
path: root/caddytest
diff options
context:
space:
mode:
authorĐỗ Trọng Hải <[email protected]>2023-10-11 04:46:39 +0700
committerGitHub <[email protected]>2023-10-10 21:46:39 +0000
commitdf9950297793fbe3930cd3151b6f1a3cea893a38 (patch)
tree94c887fec0c54d8d44858a23fafab89d77743bd3 /caddytest
parente0aaefab80d75293783a5551b094cf57b49da8d5 (diff)
downloadcaddy-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.txt37
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
+ }
+ ]
+ }
+ }
+ }
+}
+