> Hi *, > > I can check the version of couchdb: > > curl -X GET http://localhost:5984 > {"couchdb":"Welcome","version":"1.2.0"} > > Newer couchdbs give more info: > {"couchdb":"Welcome","uuid":"a7bd3e6b480f2b0bfe7b8687cda009f7","version":"1.5.0","vendor":{"name":"Ubuntu","version":"14.04"}} > > > I would like to have a human-readable string to identify my couchdb > instances. I would like to get something like: > > {"couchdb":"Welcome","version":"1.2.0", "name" : "Main CDB instance"} > > This is no vendor information: it is just a "couchdb instance human id". > > is there an accepted method of configuring this in couchdb? Can I simply > overwrite the "couchdb" property with a custom string, instead of the > default "Welcome" message? Where would I do this? I have checked > default.ini and local.ini and there is no info about this.
Hi Daniel, I’d suggest putting any keys/values you need into local.ini under the [vendor] section. They will appear in GET / without auth, and shouldn't conflict with anything else, by design. You could even domain-style namespace them: [vendor] com.gonvaled.couch.instance = comfy com.gonvaled.couch.type = innersprings Obviously, if you don’t mind using _config, you can add your own [sections] of course too, but then you’ll need admin credentials for GET /_config/... A+ — Dave Cottlehuber [email protected] Sent from my Couch
