feat(mixins/HttpProxy): enable by default
This commit is contained in:
parent
9150823c37
commit
d157fd3528
@ -40,7 +40,7 @@ export default class HttpProxy {
|
|||||||
this.#app = app
|
this.#app = app
|
||||||
|
|
||||||
const events = new EventListenersManager(httpServer)
|
const events = new EventListenersManager(httpServer)
|
||||||
app.config.watch('http.proxy.enabled', (enabled = false) => {
|
app.config.watch('http.proxy.enabled', (enabled = true) => {
|
||||||
events.removeAll()
|
events.removeAll()
|
||||||
if (enabled) {
|
if (enabled) {
|
||||||
events.add('connect', this.#handleConnect.bind(this)).add('request', this.#handleRequest.bind(this))
|
events.add('connect', this.#handleConnect.bind(this)).add('request', this.#handleRequest.bind(this))
|
||||||
|
@ -10,11 +10,11 @@
|
|||||||
|
|
||||||
## Set up
|
## Set up
|
||||||
|
|
||||||
The proxy is disabled by default, to enable it, add the following lines to your config:
|
The proxy is enabled by default, to disable it, add the following lines to your config:
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[http.proxy]
|
[http.proxy]
|
||||||
enabled = true
|
enabled = false
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
> Users must be able to say: “Nice enhancement, I'm eager to test it”
|
> Users must be able to say: “Nice enhancement, I'm eager to test it”
|
||||||
|
|
||||||
- [REST API] VDI import now also supports the raw format
|
- [REST API] VDI import now also supports the raw format
|
||||||
|
- Embedded HTTP/HTTPS proxy is now enabled by default
|
||||||
|
|
||||||
### Bug fixes
|
### Bug fixes
|
||||||
|
|
||||||
@ -34,6 +35,8 @@
|
|||||||
|
|
||||||
- @vates/async-each major
|
- @vates/async-each major
|
||||||
- @xen-orchestra/fs major
|
- @xen-orchestra/fs major
|
||||||
|
- @xen-orchestra/mixins minor
|
||||||
|
- @xen-orchestra/proxy minor
|
||||||
- @xen-orchestra/xapi patch
|
- @xen-orchestra/xapi patch
|
||||||
- xo-cli patch
|
- xo-cli patch
|
||||||
- xo-server minor
|
- xo-server minor
|
||||||
|
Loading…
Reference in New Issue
Block a user