Closed stuarteberg closed 1 year ago
@DocSavage Can we bump the priority of this, BTW? Is it easy to implement?
The DVID server can return the TOML file location and contents, but under docker swarm the actual TOML location can be aliased so it's not the true path. For non-containerized DVID servers, the location should be correct. I'll add TOML file location to api/server/info
endpoint and the TOML contents itself in a new api/server/config
endpoint.
Currently, if I'm curious about how a given DVID server is configured, I have to ssh into the machine where it's running, figure out where the toml file is located (not always easy), and inspect it.
It would be nice if DVID exposed an endpoint such as
.../api/server/config
or.../api/server/toml
which returns the completetoml
file contents (including comments, etc.), and also showed the filepath to thetoml
file (say, as a comment inserted at the top of the file).