This commit introduces the initial implementation of the xmrig-proxy functionality. It includes: - A new `proxy` command to the CLI to start the proxy. - A new `pkg/proxy` package to encapsulate the core proxy logic. - A mock proxy service that simulates workers connecting. - The initial implementation of the XMRig Proxy API, with the `/` and `/workers.json` endpoints.
20 lines
396 B
JSON
20 lines
396 B
JSON
{
|
|
"api": {
|
|
"id": "enchantrix-from-file",
|
|
"worker-id": "worker-1"
|
|
},
|
|
"http": {
|
|
"enabled": true,
|
|
"host": "127.0.0.1",
|
|
"port": 8081,
|
|
"access-token": null,
|
|
"restricted": true
|
|
},
|
|
"pools": [
|
|
{
|
|
"url": "pool.example.com:3333",
|
|
"user": "testuser",
|
|
"pass": "testpass"
|
|
}
|
|
]
|
|
}
|