Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

www shows stats api down #65

Closed
robbmcmahan opened this issue Aug 9, 2016 · 7 comments
Closed

www shows stats api down #65

robbmcmahan opened this issue Aug 9, 2016 · 7 comments

Comments

@robbmcmahan
Copy link

Hi Sammy,
In the read me you have
"Change ApiUrl: '//example.net/' in www/config/environment.js to match your domain name. "

I have changed that to my //mydomainname.com/ however if I go to www.mydomainname.com (when you add the www) it shows the "stats api down".

What do I need to do to make it work for both?

Thanks

@sammy007
Copy link
Owner

sammy007 commented Aug 9, 2016

Because I guess you missed port.

@robbmcmahan
Copy link
Author

What do you mean missed port? I don't see anywhere in the environment.js to add a port for the domain. Do you mean a different configure file? If so what and where?

APP: {
  // API host and port
  ApiUrl: '//example.net/',

  // HTTP mining endpoint
  HttpHost: 'http://example.net',
  HttpPort: 8888,

  // Stratum mining endpoint
  StratumHost: 'example.net',
  StratumPort: 8008,

  // Fee and payout details
  PoolFee: '1%',
  PayoutThreshold: '0.5 Ether',

  // For network hashrate (change for your favourite fork)
  BlockTime: 14.4
}

};

Thanks

@sammy007
Copy link
Owner

sammy007 commented Aug 9, 2016

I meant port on which API is listening for requests. By default it's 8080 if you didn't set up nginx upstream for it.

@robbmcmahan
Copy link
Author

I put the upstream in the nginx exactly like the read me example shows.

@sammy007
Copy link
Owner

sammy007 commented Aug 9, 2016

So make sure you can access /api/stats URL from external machine. Keep in mind that changes to environment.js does not give immediate effect, you must build it again.

@robbmcmahan
Copy link
Author

Yes, I can access /api/stats from mydomain.com/api/stats
I can also access them from www.mydomain.com/api/stats (when I include www prefix)

eveything works fine at mydomain.com
but when I go to www.mydomain.com (when I include the www) it shows Stats API Temporarily Down

@sammy007
Copy link
Owner

sammy007 commented Aug 9, 2016

So don't include it or fix subdomain configuration in web server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants