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