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 | :8884 |
| 2 | |
| 3 | reverse_proxy h2c://localhost:8080 |
| 4 | |
| 5 | reverse_proxy unix+h2c//run/app.sock |
| 6 | ---------- |
| 7 | { |
| 8 | "apps": { |
| 9 | "http": { |
| 10 | "servers": { |
| 11 | "srv0": { |
| 12 | "listen": [ |
| 13 | ":8884" |
| 14 | ], |
| 15 | "routes": [ |
| 16 | { |
| 17 | "handle": [ |
| 18 | { |
| 19 | "handler": "reverse_proxy", |
| 20 | "transport": { |
| 21 | "protocol": "http", |
| 22 | "versions": [ |
| 23 | "h2c", |
| 24 | "2" |
| 25 | ] |
| 26 | }, |
| 27 | "upstreams": [ |
| 28 | { |
| 29 | "dial": "localhost:8080" |
| 30 | } |
| 31 | ] |
| 32 | }, |
| 33 | { |
| 34 | "handler": "reverse_proxy", |
| 35 | "transport": { |
| 36 | "protocol": "http", |
| 37 | "versions": [ |
| 38 | "h2c", |
| 39 | "2" |
| 40 | ] |
| 41 | }, |
| 42 | "upstreams": [ |
| 43 | { |
| 44 | "dial": "unix//run/app.sock" |
| 45 | } |
| 46 | ] |
| 47 | } |
| 48 | ] |
| 49 | } |
| 50 | ] |
| 51 | } |
| 52 | } |
| 53 | } |
| 54 | } |
| 55 | } |