-
Notifications
You must be signed in to change notification settings - Fork 109
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
xmrigCC Server in docker and behind nginx proxy #358
Comments
First of all how is the setup looking like. Is it like this: miner -> TLS -> nginx -> PLAIN -> xmrigCCServer I expect the nginx works as an TLS offloader in this case, right? Or is it like this: miner -> TLS -> nginx -> TLS -> xmrigCCServer Can you open the dashboard? https://yourip:80 or does it just work with http://yourip:80 ? If possible please send me the nginx config, and the cc server config too. |
Yes i can open with https//yourip:80 if i let tls on Here is my config of CC server
Also for nginx im using the jc21/nginx-proxy-manager This works also appears at the CC Server log with a And this returns a 301 Moved Permanently and same error in log of CC Server Both test are shown on the correct log of nginx (the one that corresponds to the CC Server domain name)
In the other hand the attempts from the miner are in de default_host.log that's because it isn't being redirected
|
Thank you very much for your detailed bug report. Because of that i quickly found it and fixed it. The fix is available in dev branch. Can you build on your own or should i provide you a test build to verify its solved? If so, which platform do you need? |
Thanks to you for your quick responses and hard work i will build it and test it now |
working great now 😄 thanks |
* Added wownero solo mining (upstream 6.13.1) support * Added support to start xmrigDaemon/Miner with nothing but `--cc-url` and `--cc-token` params to remote push the config * usage: `./xmrigDaemon --cc-url=ip:port --cc-token=yourSecretToken -c config.json` * Added 'rig-id' column to the dasboard * Applied security patches to fixed XSS vulnerabilities and a DoS/Server crashs generated by malicious clients/configs * Thanks to [@DLL_Cool_J](https://twitter.com/dll_cool_j) for the great research! * Fixed host-header in CC-Client to have correct value (needed when using nginx as reverse proxy in front of the CC-Server) #358
I'm trying to add the CC Server behind an nginx proxy so i could have everything in a container
After configuring everything on nginx and making a couple of test and everything seem working fine with TLS,
Except for the daemon, keep showing this error
error:unable to performRequest POST -> http://my-domain:80/client/setClientStatus?clientId=worker
Nothing happens on the log of CC Server
Making a couple of test more with curl to simulate a POST request it work even it shows up in the CC Server log.
After some more research looking into the nginx log
*2929 client sent invalid method while reading client request line, client: (my-public-ip), server: default-host.localhost, request: "����5��1��
This shows up every time the error appears in the server log so for what i could understand daemon isn't making a good request
After some more testing, if i add https at the beginning of the url on the config file for the daemon the error not shows anywhere but status isn't reported.
This is the cc-client par of my daemon
This doesn't work even if i remove everything related with tls,
Result with tls off on everything
On CC Server log keeps showing nothing related, on daemon show the same and inside nginx log
client sent invalid host header while reading client request headers, client: (my-public-ip), server: default-host.localhost, request: "POST /client/setClientStatus?clientId=worker HTTP/1.1", host: ""
So for my understanding the daemon isn't making a good or valid request, it's being redirected to the default-host inside nginx that's because isn't asking for the domain name i set up on the config.json
The text was updated successfully, but these errors were encountered: