From b64c4dfdb54c955a17149c25cdedee6c0819343d Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Sun, 21 Apr 2024 12:29:31 +0300 Subject: [PATCH] feat: trim config, add autosave --- config.json | 44 +++++++------------------------------------- docker-compose.yml | 2 +- 2 files changed, 8 insertions(+), 38 deletions(-) diff --git a/config.json b/config.json index 396dc68..7ad7435 100644 --- a/config.json +++ b/config.json @@ -1,16 +1,5 @@ { - "api": { - "id": null, - "worker-id": null - }, - "http": { - "enabled": false, - "host": "127.0.0.1", - "port": 0, - "access-token": null, - "restricted": true - }, - "autosave": false, + "autosave": true, "background": false, "colors": true, "title": true, @@ -21,35 +10,24 @@ "1gb-pages": true, "rdmsr": true, "wrmsr": true, - "cache_qos": false, + "cache_qos": true, "numa": true, "scratchpad_prefetch_mode": 1 }, "cpu": { "enabled": true, "huge-pages": true, - "huge-pages-jit": false, - "hw-aes": null, - "priority": null, - "memory-pool": false, - "yield": true, - "max-threads-hint": 100 + "yield": true }, "opencl": { "enabled": false, "cache": true, - "loader": null, - "platform": "AMD", - "adl": true, - "cn/0": false, - "cn-lite/0": false + "loader": null }, "cuda": { "enabled": false, "loader": null, - "nvml": true, - "cn/0": false, - "cn-lite/0": false + "nvml": true }, "donate-level": 0, "donate-over-proxy": 0, @@ -59,9 +37,7 @@ "url": "tunkki:3333", "user": "${HOSTNAME}", "pass": "", - "keepalive": true, - "nicehash": false, - "variant": "trtl" + "keepalive": true } ], "print-time": 60, @@ -71,13 +47,7 @@ "retry-pause": 5, "syslog": true, "tls": { - "enabled": false, - "protocols": null, - "cert": null, - "cert_key": null, - "ciphers": null, - "ciphersuites": null, - "dhparam": null + "enabled": false }, "user-agent": null, "verbose": 0, diff --git a/docker-compose.yml b/docker-compose.yml index 97d6f37..74e100e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,7 +6,7 @@ services: #environment: # - TZ=Europe/Amsterdam volumes: - - ./config.json:/xmrig/etc/config.json:ro + - ./config.json:/xmrig/etc/config.json:rw - ./log:/xmrig/log command: ["/xmrig/xmrig", "--config=/xmrig/etc/config.json"] restart: unless-stopped