summaryrefslogtreecommitdiff
path: root/caddytest/integration
diff options
context:
space:
mode:
authorĐỗ Trọng Hải <41283691+hainenber@users.noreply.github.com>2023-10-11 04:46:39 +0700
committerGitHub <noreply@github.com>2023-10-10 21:46:39 +0000
commitdf9950297793fbe3930cd3151b6f1a3cea893a38 (patch)
tree94c887fec0c54d8d44858a23fafab89d77743bd3 /caddytest/integration
parente0aaefab80d75293783a5551b094cf57b49da8d5 (diff)
httpcaddyfile: Enable TLS for catch-all site if `tls` directive is specified (#5808)
Diffstat (limited to 'caddytest/integration')
-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 0000000..b37b40c
--- /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
+ }
+ ]
+ }
+ }
+ }
+}
+