summaryrefslogtreecommitdiff
path: root/caddytest/integration/caddyfile_adapt/global_options_preferred_chains.txt
diff options
context:
space:
mode:
Diffstat (limited to 'caddytest/integration/caddyfile_adapt/global_options_preferred_chains.txt')
-rw-r--r--caddytest/integration/caddyfile_adapt/global_options_preferred_chains.txt56
1 files changed, 56 insertions, 0 deletions
diff --git a/caddytest/integration/caddyfile_adapt/global_options_preferred_chains.txt b/caddytest/integration/caddyfile_adapt/global_options_preferred_chains.txt
new file mode 100644
index 0000000..893b34b
--- /dev/null
+++ b/caddytest/integration/caddyfile_adapt/global_options_preferred_chains.txt
@@ -0,0 +1,56 @@
+{
+ preferred_chains smallest
+}
+
+localhost
+----------
+{
+ "apps": {
+ "http": {
+ "servers": {
+ "srv0": {
+ "listen": [
+ ":443"
+ ],
+ "routes": [
+ {
+ "match": [
+ {
+ "host": [
+ "localhost"
+ ]
+ }
+ ],
+ "terminal": true
+ }
+ ]
+ }
+ }
+ },
+ "tls": {
+ "automation": {
+ "policies": [
+ {
+ "subjects": [
+ "localhost"
+ ],
+ "issuers": [
+ {
+ "module": "acme",
+ "preferred_chains": {
+ "smallest": true
+ }
+ },
+ {
+ "module": "zerossl",
+ "preferred_chains": {
+ "smallest": true
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ }
+}