Hi,
The easiest approach would be to have haproxy send something else instead, but
note that some tools might break if they can't retrieve the welcome message.
I've confirmed that the replicator would not be affected. We welcome reports of
your success and/or issues you face by removing this.
Something like this in the haproxy frontend;
http-request return status 200 content-type application/json string "{}" if {
path eq / }
B.
> On 20 Jul 2022, at 06:40, Arcadius Ahouansou <[email protected]> wrote:
>
> Hello.
> By default, CouchDB exposes its current version to the worlds i.e
> going to curl http://MYHOST:MYPORT/
> I get the pretty json response below.
>
> Please what is the recommended way of disabling this and display an
> empty json or remove at least the version.
> Note that I have haproxy in front of couchdb.
> Thank you very much.
>
> Arcadius
>
> {
>
> - "couchdb": "Welcome",
> - "version": "3.2.2",
> - "git_sha": "d5b746b7c",
> - "uuid": "ce35097f091bda955f1a7b46adddaaca",
> - "features": [...],
> - "vendor": {
> - "name": "The Apache Software Foundation"
> }
>
> }