@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 853 Bytes
Raw
1 # example from issue #4640
2 http://foo:8447, http://127.0.0.1:8447 {
3 reverse_proxy 127.0.0.1:8080
4 }
5 ----------
6 {
7 "apps": {
8 "http": {
9 "servers": {
10 "srv0": {
11 "listen": [
12 ":8447"
13 ],
14 "routes": [
15 {
16 "match": [
17 {
18 "host": [
19 "foo",
20 "127.0.0.1"
21 ]
22 }
23 ],
24 "handle": [
25 {
26 "handler": "subroute",
27 "routes": [
28 {
29 "handle": [
30 {
31 "handler": "reverse_proxy",
32 "upstreams": [
33 {
34 "dial": "127.0.0.1:8080"
35 }
36 ]
37 }
38 ]
39 }
40 ]
41 }
42 ],
43 "terminal": true
44 }
45 ],
46 "automatic_https": {
47 "skip": [
48 "foo",
49 "127.0.0.1"
50 ]
51 }
52 }
53 }
54 }
55 }
56 }