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 | tls_resolvers 1.1.1.1 8.8.8.8 |
| 3 | } |
| 4 | |
| 5 | example.com { |
| 6 | } |
| 7 | ---------- |
| 8 | { |
| 9 | "apps": { |
| 10 | "http": { |
| 11 | "servers": { |
| 12 | "srv0": { |
| 13 | "listen": [ |
| 14 | ":443" |
| 15 | ], |
| 16 | "routes": [ |
| 17 | { |
| 18 | "match": [ |
| 19 | { |
| 20 | "host": [ |
| 21 | "example.com" |
| 22 | ] |
| 23 | } |
| 24 | ], |
| 25 | "terminal": true |
| 26 | } |
| 27 | ] |
| 28 | } |
| 29 | } |
| 30 | }, |
| 31 | "tls": { |
| 32 | "resolvers": [ |
| 33 | "1.1.1.1", |
| 34 | "8.8.8.8" |
| 35 | ] |
| 36 | } |
| 37 | } |
| 38 | } |