Skip to content
This repository has been archived by the owner. It is now read-only.

Let api run on separate host #18

Merged
merged 2 commits into from May 4, 2018
Merged

Let api run on separate host #18

merged 2 commits into from May 4, 2018

Conversation

funkypenguin
Copy link

@funkypenguin funkypenguin commented May 3, 2018

This is a minor enhancement to support running the 5 pool modules as isolated container within docker-compose/swarm. The charts module assumes the API is running on 127.0.0.1, but in docker-land that's not the case - each container has its own unique IP.

This PR simply adds the option to specify an api host. If no host is specified, previous behaviour is honoured, and 127.0.0.1 is assumed.

I've tested this both with and without a host entry in the api settings under config.json, works as expected. The PR'd version is currently running (dockerized) on https://trtl.heigh-ho.funkypenguin.co.nz/, generating sexy charts.

@RocksteadyTC RocksteadyTC merged commit c94259c into turtlecoin:master May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants