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 | local_certs |
| 3 | } |
| 4 | |
| 5 | *.tld, *.*.tld { |
| 6 | tls { |
| 7 | on_demand |
| 8 | } |
| 9 | } |
| 10 | |
| 11 | foo.tld, www.foo.tld { |
| 12 | } |
| 13 | ---------- |
| 14 | { |
| 15 | "apps": { |
| 16 | "http": { |
| 17 | "servers": { |
| 18 | "srv0": { |
| 19 | "listen": [ |
| 20 | ":443" |
| 21 | ], |
| 22 | "routes": [ |
| 23 | { |
| 24 | "match": [ |
| 25 | { |
| 26 | "host": [ |
| 27 | "foo.tld", |
| 28 | "www.foo.tld" |
| 29 | ] |
| 30 | } |
| 31 | ], |
| 32 | "terminal": true |
| 33 | }, |
| 34 | { |
| 35 | "match": [ |
| 36 | { |
| 37 | "host": [ |
| 38 | "*.tld", |
| 39 | "*.*.tld" |
| 40 | ] |
| 41 | } |
| 42 | ], |
| 43 | "terminal": true |
| 44 | } |
| 45 | ] |
| 46 | } |
| 47 | } |
| 48 | }, |
| 49 | "tls": { |
| 50 | "automation": { |
| 51 | "policies": [ |
| 52 | { |
| 53 | "subjects": [ |
| 54 | "foo.tld", |
| 55 | "www.foo.tld" |
| 56 | ], |
| 57 | "issuers": [ |
| 58 | { |
| 59 | "module": "internal" |
| 60 | } |
| 61 | ] |
| 62 | }, |
| 63 | { |
| 64 | "subjects": [ |
| 65 | "*.*.tld", |
| 66 | "*.tld" |
| 67 | ], |
| 68 | "issuers": [ |
| 69 | { |
| 70 | "module": "internal" |
| 71 | } |
| 72 | ], |
| 73 | "on_demand": true |
| 74 | }, |
| 75 | { |
| 76 | "issuers": [ |
| 77 | { |
| 78 | "module": "internal" |
| 79 | } |
| 80 | ] |
| 81 | } |
| 82 | ] |
| 83 | } |
| 84 | } |
| 85 | } |
| 86 | } |