Show proxy status; do not spawn Application if disabled
This is a small MR for something I had started working on as part of #364, but that I have now to pause.
This MR does two things: it reports the status of the microservices
proxy in the portRouteInfo
, so that if that's disabled we would
immediately know, and it also stop spawn the proxy Application
in case
it's disabled. This wasn't the case before; previously we would be
spawing the proxy process even though it was "morally" disabled.
If the proxy is disabled we will now see:
==========================================================================================================
GarganText Main Routes
==========================================================================================================
- Web GarganText Frontend..................: http://localhost:8008/index.html
- Swagger UI (API documentation)...........: http://localhost:8008/swagger-ui
- Playground GraphQL (API documentation)...: http://localhost:8008/gql
- Microservices proxy .....................: DISABLED (enable in gargantext-settings.toml)
- Central exchange.........................: nanomsg: ipc:///tmp/central-exchange.ipc
- Dispatcher internal......................: nanomsg: ipc:///tmp/dispatcher.ipc
- WebSocket address........................: ws://localhost:8008/ws
==========================================================================================================
(Note the DISABLED
). Previously I would always scratch my head on why the proxy wasn't working, just to remember I had it disabled in the .toml
settings.