diff --git a/@xen-orchestra/mixins/HttpProxy.mjs b/@xen-orchestra/mixins/HttpProxy.mjs index b7acd502a..bfdfd48bf 100644 --- a/@xen-orchestra/mixins/HttpProxy.mjs +++ b/@xen-orchestra/mixins/HttpProxy.mjs @@ -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)) diff --git a/@xen-orchestra/mixins/docs/HttpProxy.md b/@xen-orchestra/mixins/docs/HttpProxy.md index 0337959a5..2a8b1f947 100644 --- a/@xen-orchestra/mixins/docs/HttpProxy.md +++ b/@xen-orchestra/mixins/docs/HttpProxy.md @@ -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 diff --git a/CHANGELOG.unreleased.md b/CHANGELOG.unreleased.md index 3cb0c8951..34d5edc4b 100644 --- a/CHANGELOG.unreleased.md +++ b/CHANGELOG.unreleased.md @@ -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