From 4c2da188419cf087049a6a3d4d08a859ac94c397 Mon Sep 17 00:00:00 2001 From: Peter Magnusson Date: Mon, 7 Jun 2021 20:25:12 +0200 Subject: caddytls: Add Caddyfile support for `propagation_timeout` (#4178) * add propagation_timeout to UnmarshalCaddyfile - Closes #4177 * added caddyfile_adapt test --- .../caddyfile_adapt/tls_propagation_timeout.txt | 70 ++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 caddytest/integration/caddyfile_adapt/tls_propagation_timeout.txt (limited to 'caddytest/integration') diff --git a/caddytest/integration/caddyfile_adapt/tls_propagation_timeout.txt b/caddytest/integration/caddyfile_adapt/tls_propagation_timeout.txt new file mode 100644 index 0000000..5d2b643 --- /dev/null +++ b/caddytest/integration/caddyfile_adapt/tls_propagation_timeout.txt @@ -0,0 +1,70 @@ +localhost + +respond "hello from localhost" +tls { + issuer acme { + propagation_timeout "10m0s" + } +} +---------- +{ + "apps": { + "http": { + "servers": { + "srv0": { + "listen": [ + ":443" + ], + "routes": [ + { + "match": [ + { + "host": [ + "localhost" + ] + } + ], + "handle": [ + { + "handler": "subroute", + "routes": [ + { + "handle": [ + { + "body": "hello from localhost", + "handler": "static_response" + } + ] + } + ] + } + ], + "terminal": true + } + ] + } + } + }, + "tls": { + "automation": { + "policies": [ + { + "subjects": [ + "localhost" + ], + "issuers": [ + { + "challenges": { + "dns": { + "propagation_timeout": 600000000000 + } + }, + "module": "acme" + } + ] + } + ] + } + } + } +} \ No newline at end of file -- cgit v1.2.3