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
| 1 | { |
| 2 | default_bind tcp4/0.0.0.0 tcp6/[::] |
| 3 | } |
| 4 | |
| 5 | example.com { |
| 6 | } |
| 7 | |
| 8 | example.org:12345 { |
| 9 | } |
| 10 | ---------- |
| 11 | { |
| 12 | "apps": { |
| 13 | "http": { |
| 14 | "servers": { |
| 15 | "srv0": { |
| 16 | "listen": [ |
| 17 | "tcp4/0.0.0.0:12345", |
| 18 | "tcp6/[::]:12345" |
| 19 | ], |
| 20 | "routes": [ |
| 21 | { |
| 22 | "match": [ |
| 23 | { |
| 24 | "host": [ |
| 25 | "example.org" |
| 26 | ] |
| 27 | } |
| 28 | ], |
| 29 | "terminal": true |
| 30 | } |
| 31 | ] |
| 32 | }, |
| 33 | "srv1": { |
| 34 | "listen": [ |
| 35 | "tcp4/0.0.0.0:443", |
| 36 | "tcp6/[::]:443" |
| 37 | ], |
| 38 | "routes": [ |
| 39 | { |
| 40 | "match": [ |
| 41 | { |
| 42 | "host": [ |
| 43 | "example.com" |
| 44 | ] |
| 45 | } |
| 46 | ], |
| 47 | "terminal": true |
| 48 | } |
| 49 | ] |
| 50 | } |
| 51 | } |
| 52 | } |
| 53 | } |
| 54 | } |