0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-30 22:34:15 -05:00
caddy/caddytest/integration/caddyfile_adapt/tls_automation_policies_11.txt

832 B

example from https://caddy.community/t/21415

a.com { tls { get_certificate http http://foo.com/get } }

b.com { }

{ "apps": { "http": { "servers": { "srv0": { "listen": [ ":443" ], "routes": [ { "match": [ { "host": [ "a.com" ] } ], "terminal": true }, { "match": [ { "host": [ "b.com" ] } ], "terminal": true } ] } } }, "tls": { "automation": { "policies": [ { "subjects": [ "a.com" ], "get_certificate": [ { "url": "http://foo.com/get", "via": "http" } ] }, { "subjects": [ "b.com" ] } ] } } } }