| 1 |
localhost |
| 2 |
|
| 3 |
respond "hello from localhost" |
| 4 |
tls { |
| 5 |
dns mock |
| 6 |
dns_ttl 5m10s |
| 7 |
} |
| 8 |
---------- |
| 9 |
{ |
| 10 |
"apps": { |
| 11 |
"http": { |
| 12 |
"servers": { |
| 13 |
"srv0": { |
| 14 |
"listen": [ |
| 15 |
":443" |
| 16 |
], |
| 17 |
"routes": [ |
| 18 |
{ |
| 19 |
"match": [ |
| 20 |
{ |
| 21 |
"host": [ |
| 22 |
"localhost" |
| 23 |
] |
| 24 |
} |
| 25 |
], |
| 26 |
"handle": [ |
| 27 |
{ |
| 28 |
"handler": "subroute", |
| 29 |
"routes": [ |
| 30 |
{ |
| 31 |
"handle": [ |
| 32 |
{ |
| 33 |
"body": "hello from localhost", |
| 34 |
"handler": "static_response" |
| 35 |
} |
| 36 |
] |
| 37 |
} |
| 38 |
] |
| 39 |
} |
| 40 |
], |
| 41 |
"terminal": true |
| 42 |
} |
| 43 |
] |
| 44 |
} |
| 45 |
} |
| 46 |
}, |
| 47 |
"tls": { |
| 48 |
"automation": { |
| 49 |
"policies": [ |
| 50 |
{ |
| 51 |
"subjects": [ |
| 52 |
"localhost" |
| 53 |
], |
| 54 |
"issuers": [ |
| 55 |
{ |
| 56 |
"challenges": { |
| 57 |
"dns": { |
| 58 |
"provider": { |
| 59 |
"name": "mock" |
| 60 |
}, |
| 61 |
"ttl": 310000000000 |
| 62 |
} |
| 63 |
}, |
| 64 |
"module": "acme" |
| 65 |
} |
| 66 |
] |
| 67 |
} |
| 68 |
] |
| 69 |
} |
| 70 |
} |
| 71 |
} |
| 72 |
} |