@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 62 lines 697 Bytes
Raw
1 a.example.com {
2 }
3
4 b.example.com {
5 }
6
7 :443 {
8 tls {
9 on_demand
10 }
11 }
12 ----------
13 {
14 "apps": {
15 "http": {
16 "servers": {
17 "srv0": {
18 "listen": [
19 ":443"
20 ],
21 "routes": [
22 {
23 "match": [
24 {
25 "host": [
26 "a.example.com"
27 ]
28 }
29 ],
30 "terminal": true
31 },
32 {
33 "match": [
34 {
35 "host": [
36 "b.example.com"
37 ]
38 }
39 ],
40 "terminal": true
41 }
42 ]
43 }
44 }
45 },
46 "tls": {
47 "automation": {
48 "policies": [
49 {
50 "subjects": [
51 "a.example.com",
52 "b.example.com"
53 ]
54 },
55 {
56 "on_demand": true
57 }
58 ]
59 }
60 }
61 }
62 }