@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 82 lines 964 Bytes
Raw
1 {
2 servers {
3 timeouts {
4 idle 90s
5 }
6 strict_sni_host insecure_off
7 }
8 servers :80 {
9 timeouts {
10 idle 60s
11 }
12 }
13 servers :443 {
14 timeouts {
15 idle 30s
16 }
17 strict_sni_host
18 }
19 }
20
21 foo.com {
22 }
23
24 http://bar.com {
25 }
26
27 :8080 {
28 }
29
30 ----------
31 {
32 "apps": {
33 "http": {
34 "servers": {
35 "srv0": {
36 "listen": [
37 ":443"
38 ],
39 "idle_timeout": 30000000000,
40 "routes": [
41 {
42 "match": [
43 {
44 "host": [
45 "foo.com"
46 ]
47 }
48 ],
49 "terminal": true
50 }
51 ],
52 "strict_sni_host": true
53 },
54 "srv1": {
55 "listen": [
56 ":80"
57 ],
58 "idle_timeout": 60000000000,
59 "routes": [
60 {
61 "match": [
62 {
63 "host": [
64 "bar.com"
65 ]
66 }
67 ],
68 "terminal": true
69 }
70 ]
71 },
72 "srv2": {
73 "listen": [
74 ":8080"
75 ],
76 "idle_timeout": 90000000000,
77 "strict_sni_host": false
78 }
79 }
80 }
81 }
82 }