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