@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 57 lines 891 Bytes
Raw
1 https://example.com {
2 reverse_proxy http://localhost:54321 {
3 transport http {
4 local_address 192.168.0.1
5 }
6 }
7 }
8
9 ----------
10 {
11 "apps": {
12 "http": {
13 "servers": {
14 "srv0": {
15 "listen": [
16 ":443"
17 ],
18 "routes": [
19 {
20 "match": [
21 {
22 "host": [
23 "example.com"
24 ]
25 }
26 ],
27 "handle": [
28 {
29 "handler": "subroute",
30 "routes": [
31 {
32 "handle": [
33 {
34 "handler": "reverse_proxy",
35 "transport": {
36 "local_address": "192.168.0.1",
37 "protocol": "http"
38 },
39 "upstreams": [
40 {
41 "dial": "localhost:54321"
42 }
43 ]
44 }
45 ]
46 }
47 ]
48 }
49 ],
50 "terminal": true
51 }
52 ]
53 }
54 }
55 }
56 }
57 }