diff options
author | Francis Lavoie <lavofr@gmail.com> | 2022-01-18 13:29:07 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-18 11:29:07 -0700 |
commit | 1b7ff5d76c7a3c67b6e0f9b51af78d1b227fdea3 (patch) | |
tree | 6e03e066729f05595d37473c711160e0319df886 /caddytest/integration/caddyfile_adapt | |
parent | 93a7a45e7e1ca64dc0103af55ab2a0a4b9c6c84f (diff) |
httpcaddyfile: Add `default_bind` global option (#4531)
Diffstat (limited to 'caddytest/integration/caddyfile_adapt')
-rw-r--r-- | caddytest/integration/caddyfile_adapt/global_options_default_bind.txt | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/caddytest/integration/caddyfile_adapt/global_options_default_bind.txt b/caddytest/integration/caddyfile_adapt/global_options_default_bind.txt new file mode 100644 index 0000000..c34186e --- /dev/null +++ b/caddytest/integration/caddyfile_adapt/global_options_default_bind.txt @@ -0,0 +1,52 @@ +{ + default_bind tcp4/0.0.0.0 +} + +example.com { +} + +example.org:12345 { +} +---------- +{ + "apps": { + "http": { + "servers": { + "srv0": { + "listen": [ + "tcp4/0.0.0.0:12345" + ], + "routes": [ + { + "match": [ + { + "host": [ + "example.org" + ] + } + ], + "terminal": true + } + ] + }, + "srv1": { + "listen": [ + "tcp4/0.0.0.0:443" + ], + "routes": [ + { + "match": [ + { + "host": [ + "example.com" + ] + } + ], + "terminal": true + } + ] + } + } + } + } +}
\ No newline at end of file |