mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
Update README.md
Syntax error correction
This commit is contained in:
parent
8004f4e5fc
commit
4ecc6e26ce
@ -199,8 +199,8 @@ httpProxy.createServer({
|
||||
port: 9009
|
||||
},
|
||||
ssl: {
|
||||
key: fs.readFileSync('valid-ssl-key.pem'), 'utf8'),
|
||||
cert: fs.readFileSync('valid-ssl-cert.pem'), 'utf8')
|
||||
key: fs.readFileSync('valid-ssl-key.pem', 'utf8'),
|
||||
cert: fs.readFileSync('valid-ssl-cert.pem', 'utf8')
|
||||
}
|
||||
}).listen(8009);
|
||||
```
|
||||
@ -213,8 +213,8 @@ httpProxy.createServer({
|
||||
//
|
||||
httpProxy.createServer({
|
||||
ssl: {
|
||||
key: fs.readFileSync('valid-ssl-key.pem'), 'utf8'),
|
||||
cert: fs.readFileSync('valid-ssl-cert.pem'), 'utf8')
|
||||
key: fs.readFileSync('valid-ssl-key.pem', 'utf8'),
|
||||
cert: fs.readFileSync('valid-ssl-cert.pem', 'utf8')
|
||||
},
|
||||
target: 'https://localhost:9010',
|
||||
secure: true // Depends on your needs, could be false.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user