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

The settings in the configuration file are difficult to understand. #580

Open
PYU224 opened this issue Jan 28, 2025 · 9 comments
Open

The settings in the configuration file are difficult to understand. #580

PYU224 opened this issue Jan 28, 2025 · 9 comments

Comments

@PYU224
Copy link

PYU224 commented Jan 28, 2025

Excuse me.
It's difficult to understand how to set up external connections, so I'd like the documentation for config settings etc.
to be organized.

@Technetium1
Copy link

What do you propose changing?

@PYU224
Copy link
Author

PYU224 commented Jan 28, 2025

I would like to know how to set up websocket (wss://) etc., so I would appreciate it if you could post an example of the config settings.

@PYU224
Copy link
Author

PYU224 commented Jan 28, 2025

I'm trying it on my home server and set it up using cloudflare tunnel, but it doesn't work even if I use port443.

@PYU224
Copy link
Author

PYU224 commented Jan 28, 2025

As a example, this is my xmrig proxy config file.

{
    "listen": "0.0.0.0:443",
    "access-log-file": null,
    "access-password": null,
    "algo-ext": true,
    "api": {
        "id": null,
        "worker-id": null
    },
    "http": {
        "enabled": false,
        "host": "127.0.0.1",
        "port": 443,
        "access-token": "Yaju-Sempai",
        "restricted": true
    },
    "background": false,
    "bind": [
        {
            "host": "0.0.0.0",
            "port": 443,
            "tls": true
        }
    ],
    "colors": true,
    "title": true,
    "custom-diff": 0,
    "custom-diff-stats": false,
    "donate-level": 1,
    "log-file": null,
    "mode": "nicehash",
    "pools": [
        {
            "url": "gulf.moneroocean.stream:10032",
            "user": "xmr address",
            "pass": "x"
        }
    ],
    "retries": 5,
    "retry-pause": 5,
    "reuse-timeout": 0,
    "tls": {
        "enabled": true,
        "protocols": null,
        "cert": "/etc/ssl/cloudflare/origin_chain.pem",
        "cert_key": "/etc/ssl/cloudflare/privatekey.pem",
        "ciphers": null,
        "ciphersuites": null,
        "dhparam": null
    },
    "user-agent": null,
    "syslog": false,
    "verbose": true,
    "watch": true,
    "workers": true
}

@SChernykh
Copy link
Contributor

"listen": "0.0.0.0:443",

I don't think this option exists in xmrig-proxy config. It will use whatever you have in bind section. I don't think whatever Cloudfare thing you have will work because Stratum protocol is not HTTP.

@PYU224
Copy link
Author

PYU224 commented Jan 29, 2025

Understood, I delete it.

@PYU224
Copy link
Author

PYU224 commented Jan 29, 2025

When I delete Listen and run
wscat -c ws://localhost:443
an error hang up
appears.

@SChernykh
Copy link
Contributor

Stratum protocol is not HTTP, and it's not WebSocket. If xmrig-proxy sees some wrong/unknown data coming, it disconnects.

@PYU224
Copy link
Author

PYU224 commented Jan 29, 2025

$ wscat -c wss://localhost error: unable to verify the first certificate
I just learned about "Stratum Protocol" for the first time.

Actually, I'm working on it to earn money for PeerTube's server.
I'm making a plugin for PeerTube like this and am trying to see if it can be mined using the resources of the viewers' machines.
https://github.com/PYU224/peertube-plugin-monero-miner

Just to be clear, I am not a money worshiper.

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

3 participants