Debian Codegraph @

caddytest/integration/caddyfile_adapt/import_block_snippet_non_replaced_key_block.caddyfiletest

raw
1 (snippet) {
2 header {
3 reverse_proxy localhost:3000
4 {blocks.content_type}
5 }
6 }
7
8 example.com {
9 import snippet
10 }
11 ----------
12 {
13 "apps": {
14 "http": {
15 "servers": {
16 "srv0": {
17 "listen": [
18 ":443"
19 ],
20 "routes": [
21 {
22 "match": [
23 {
24 "host": [
25 "example.com"
26 ]
27 }
28 ],
29 "handle": [
30 {
31 "handler": "subroute",
32 "routes": [
33 {
34 "handle": [
35 {
36 "handler": "headers",
37 "response": {
38 "set": {
39 "Reverse_proxy": [
40 "localhost:3000"
41 ]
42 }
43 }
44 }
45 ]
46 }
47 ]
48 }
49 ],
50 "terminal": true
51 }
52 ]
53 }
54 }
55 }
56 }
57 }