@marcel91200 / caddy Mirror · read-only
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 11, 01:00 UTC

master
caddyfiletest 76 lines 1 KB
Raw
1 (snippet) {
2 header {
3 {blocks.foo}
4 }
5 header {
6 {blocks.bar}
7 }
8 }
9
10 example.com {
11 import snippet {
12 foo {
13 foo a
14 }
15 bar {
16 bar b
17 }
18 }
19 }
20 ----------
21 {
22 "apps": {
23 "http": {
24 "servers": {
25 "srv0": {
26 "listen": [
27 ":443"
28 ],
29 "routes": [
30 {
31 "match": [
32 {
33 "host": [
34 "example.com"
35 ]
36 }
37 ],
38 "handle": [
39 {
40 "handler": "subroute",
41 "routes": [
42 {
43 "handle": [
44 {
45 "handler": "headers",
46 "response": {
47 "set": {
48 "Foo": [
49 "a"
50 ]
51 }
52 }
53 },
54 {
55 "handler": "headers",
56 "response": {
57 "set": {
58 "Bar": [
59 "b"
60 ]
61 }
62 }
63 }
64 ]
65 }
66 ]
67 }
68 ],
69 "terminal": true
70 }
71 ]
72 }
73 }
74 }
75 }
76 }