@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 68 lines 848 Bytes
Raw
1 # (this Caddyfile is contrived, but based on issues #4176 and #4198)
2
3 http://example.com {
4 }
5
6 https://example.com {
7 tls internal
8 }
9
10 ----------
11 {
12 "apps": {
13 "http": {
14 "servers": {
15 "srv0": {
16 "listen": [
17 ":443"
18 ],
19 "routes": [
20 {
21 "match": [
22 {
23 "host": [
24 "example.com"
25 ]
26 }
27 ],
28 "terminal": true
29 }
30 ]
31 },
32 "srv1": {
33 "listen": [
34 ":80"
35 ],
36 "routes": [
37 {
38 "match": [
39 {
40 "host": [
41 "example.com"
42 ]
43 }
44 ],
45 "terminal": true
46 }
47 ]
48 }
49 }
50 },
51 "tls": {
52 "automation": {
53 "policies": [
54 {
55 "subjects": [
56 "example.com"
57 ],
58 "issuers": [
59 {
60 "module": "internal"
61 }
62 ]
63 }
64 ]
65 }
66 }
67 }
68 }