feat(mixins/HttpProxy): enable by default

This commit is contained in:
Julien Fontanet 2022-07-26 10:58:27 +02:00
parent 9150823c37
commit d157fd3528
3 changed files with 6 additions and 3 deletions

View File

@ -40,7 +40,7 @@ export default class HttpProxy {
this.#app = app
const events = new EventListenersManager(httpServer)
app.config.watch('http.proxy.enabled', (enabled = false) => {
app.config.watch('http.proxy.enabled', (enabled = true) => {
events.removeAll()
if (enabled) {
events.add('connect', this.#handleConnect.bind(this)).add('request', this.#handleRequest.bind(this))

View File

@ -10,11 +10,11 @@
## 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
[http.proxy]
enabled = true
enabled = false
```
## Usage

View File

@ -8,6 +8,7 @@
> Users must be able to say: “Nice enhancement, I'm eager to test it”
- [REST API] VDI import now also supports the raw format
- Embedded HTTP/HTTPS proxy is now enabled by default
### Bug fixes
@ -34,6 +35,8 @@
- @vates/async-each major
- @xen-orchestra/fs major
- @xen-orchestra/mixins minor
- @xen-orchestra/proxy minor
- @xen-orchestra/xapi patch
- xo-cli patch
- xo-server minor