@marcel91200 / caddy Mirror · read-only
Fork 0

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

master
caddyfiletest 56 lines 916 Bytes
Raw
1 https://example.com {
2 reverse_proxy https://localhost:54321 {
3 proxy_status_name proxy-3.example.com
4 }
5 }
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 "handle": [
26 {
27 "handler": "subroute",
28 "routes": [
29 {
30 "handle": [
31 {
32 "handler": "reverse_proxy",
33 "proxy_status_name": "proxy-3.example.com",
34 "transport": {
35 "protocol": "http",
36 "tls": {}
37 },
38 "upstreams": [
39 {
40 "dial": "localhost:54321"
41 }
42 ]
43 }
44 ]
45 }
46 ]
47 }
48 ],
49 "terminal": true
50 }
51 ]
52 }
53 }
54 }
55 }
56 }