The main Deskconn router that connects all services and devices.
- Clone the project
git clone git@github.com:xconnio/deskconn-router.git
cd deskconn-router- Configure environment variables Create or edit the .env file with appropriate values:
DESKCONN_POSTGRES_HOST=localhost
DESKCONN_POSTGRES_URL=postgres://router:random@${DESKCONN_POSTGRES_HOST}:5432/deskconn_account_service?sslmode=disable&search_path=deskconn
DESKCONN_ROUTER_ADDRESS=localhost:8080Note:
DESKCONN_POSTGRES_URLmust point to the same Postgres database used by the account service.When running
make run-docker, Docker Compose overridesDESKCONN_POSTGRES_HOSTwithhost.docker.internalso the container connects to the Postgres instance running on the Docker host.
make run