You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-17Lines changed: 17 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,18 +31,18 @@ It has the following features:
31
31
```
32
32
33
33
Even though you don't have a valid certificate prepared for `example.com`, devproxy automatically generates it on the fly. However, it is necessary to set up the private PKI for issuing bogus server certificates and let your browser trust the PKI's root CA certificate. **DO IT ON YOUR OWN RISK.**
34
-
34
+
35
35
The CA for issuing bogus server certificates is configured as follows:
36
-
36
+
37
37
```
38
38
tls:
39
39
ca:
40
40
cert: testca.rsa.crt.pem
41
41
key: testca.rsa.key.pem
42
42
hosts:
43
43
...
44
-
```
45
-
44
+
```
45
+
46
46
* Request header modification
47
47
48
48
You can add / remove arbitrary request HTTP headers for the request being rewritten:
@@ -54,7 +54,7 @@ It has the following features:
54
54
headers:
55
55
X-Forwarded-Proto: https
56
56
Removed-Header: null
57
-
```
57
+
```
58
58
59
59
* Testing FastCGI-enabled upstream
60
60
@@ -68,7 +68,7 @@ It has the following features:
68
68
X-Cgi-Script-Filename: /var/www/document/root$2
69
69
X-Cgi-Script-Name: $2
70
70
X-Cgi-Path-Info: $3
71
-
```
71
+
```
72
72
73
73
* Proxy chaining
74
74
@@ -80,35 +80,35 @@ It has the following features:
80
80
https: http://another-proxy-server:8080
81
81
```
82
82
83
-
`excluded` directive can be used when you want to prevent the requests to the specific hosts from being proxied.
83
+
`excluded` directive can be used when you want to prevent requests for the specific hosts from being proxied.
84
84
85
85
```
86
86
excluded:
87
87
- 127.0.0.1
88
88
- localhost
89
-
- intranet.example.com
90
-
```
91
-
89
+
- intranet.example.com
90
+
```
91
+
92
92
Or inversely, in case of whitelisting:
93
93
94
94
```
95
-
included:
95
+
included:
96
96
- intranet.example.com
97
97
- foobar.example.com
98
-
```
99
-
98
+
```
99
+
100
100
TLS proxy can also be specified.
101
-
101
+
102
102
```
103
103
proxy:
104
104
http: https://anoother-proxy-server:8443
105
105
https: https://another-proxy-server:8443
106
106
tls:
107
107
ca_certs: cabundle.crt.pem
108
108
certs:
109
-
- cert: client_crt.pem # this can be either the filename of a PEM-formatted certificate or a PEM string itself.
110
-
key: client_key.pem # this can be either the filename of a PEM-formatted private key or a PEM string itself.
111
-
```
109
+
- cert: client_crt.pem # this can be either the filename of a PEM-formatted certificate or a PEM string itself.
110
+
key: client_key.pem # this can be either the filename of a PEM-formatted private key or a PEM string itself.
0 commit comments