mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
[docs] more options
This commit is contained in:
parent
4c8e1d96a3
commit
d4cb9dad6c
13
README.md
13
README.md
@ -489,19 +489,20 @@ Http Proxy supports the following options
|
||||
forward: { // options for forward-proxy
|
||||
port: 8000,
|
||||
host: 'staging.com'
|
||||
},
|
||||
target : { // options for proxy target
|
||||
port: 8000,
|
||||
host: 'localhost'
|
||||
}
|
||||
port : 8000,
|
||||
host : 'localhost',
|
||||
};
|
||||
source : { // additional options for websocket proxying
|
||||
host : 'localhost',
|
||||
port : 8000,
|
||||
https: true
|
||||
}
|
||||
},
|
||||
enable : {
|
||||
xforward: true // enables X-Forwarded-For
|
||||
}
|
||||
changeOrigin: false // changes the origin of the host header to the target URL
|
||||
},
|
||||
changeOrigin: false, // changes the origin of the host header to the target URL
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user