| 1 |
localhost |
| 2 |
|
| 3 |
respond "hello from localhost" |
| 4 |
tls { |
| 5 |
client_auth { |
| 6 |
mode request |
| 7 |
trust_pool system |
| 8 |
} |
| 9 |
} |
| 10 |
---------- |
| 11 |
{ |
| 12 |
"apps": { |
| 13 |
"http": { |
| 14 |
"servers": { |
| 15 |
"srv0": { |
| 16 |
"listen": [ |
| 17 |
":443" |
| 18 |
], |
| 19 |
"routes": [ |
| 20 |
{ |
| 21 |
"match": [ |
| 22 |
{ |
| 23 |
"host": [ |
| 24 |
"localhost" |
| 25 |
] |
| 26 |
} |
| 27 |
], |
| 28 |
"handle": [ |
| 29 |
{ |
| 30 |
"handler": "subroute", |
| 31 |
"routes": [ |
| 32 |
{ |
| 33 |
"handle": [ |
| 34 |
{ |
| 35 |
"body": "hello from localhost", |
| 36 |
"handler": "static_response" |
| 37 |
} |
| 38 |
] |
| 39 |
} |
| 40 |
] |
| 41 |
} |
| 42 |
], |
| 43 |
"terminal": true |
| 44 |
} |
| 45 |
], |
| 46 |
"tls_connection_policies": [ |
| 47 |
{ |
| 48 |
"match": { |
| 49 |
"sni": [ |
| 50 |
"localhost" |
| 51 |
] |
| 52 |
}, |
| 53 |
"client_authentication": { |
| 54 |
"ca": { |
| 55 |
"provider": "system" |
| 56 |
}, |
| 57 |
"mode": "request" |
| 58 |
} |
| 59 |
}, |
| 60 |
{} |
| 61 |
] |
| 62 |
} |
| 63 |
} |
| 64 |
} |
| 65 |
} |
| 66 |
} |