Configuration - ntamero/MiningCore GitHub Wiki

{
    "logging": {
        "level": "info",
        "enableConsoleLog": true,
        "enableConsoleColors": true,
        "logFile": "core.log",
        "apiLogFile": "api.log",
        "logBaseDirectory": "/path/to/logs",
        "perPoolLogFile": false
    },
    "banning": {
        "manager": "integrated",
        "banOnJunkReceive": false,
        "banOnInvalidShares": false
    },
    "notifications": {
        "enabled": true,
        "email": {
            "host": "smtp-relay.gmail.com",
            "port": 587,
            "user": "user",
            "password": "password",
            "fromAddress": "[email protected]",
            "fromName": "pool support"
        },
        "admin": {
            "enabled": true,
            "emailAddress": "[email protected]",
            "notifyBlockFound": true,
			"ipWhitelist": ["192.168.100.2"]
        }
    },
    "persistence": {
        "postgres": {
            "host": "127.0.0.1",
            "port": 5432,
            "user": "miningcore",
            "password": "gfhjkm023",
            "database": "miningcore"
        }
    },
    "paymentProcessing": {
        "enabled": true,
        "interval": 600,
        "shareRecoveryFile": "recovered-shares.txt"
    },
    "api": {
        "enabled": true,
        "listenAddress": "192.168.100.2",
        "port": 4000,
        "metricsIpWhitelist": ["192.168.100.2"],
        "rateLimiting": {
            "disabled": false,
            "rules": [
                {
                    "Endpoint": "*",
                    "Period": "1s",
                    "Limit": 5
                }
            ],
            "ipWhitelist": ["192.168.100.2"]
        }
    },
    "pools": [
		{
			"id": "xrd1",
			"enabled": true,
			"coin": "RavenDark",
			"address": "RVmpzd9d1oTUpaJC93adZ9vrunCtBMwSH9",
			"rewardRecipients": [{
				"address": "RVmpzd9d1oTUpaJC93adZ9vrunCtBMwSH9",
				"percentage": 1
			}],
			"blockRefreshInterval": 1000,
			"jobRebroadcastTimeout": 55,
			"clientConnectionTimeout": 600,
			"banning": {
				"enabled": true,
				"time": 600,
				"invalidPercent": 50,
				"checkThreshold": 50
			},
			"ports": {
				"3055": {
					"listenAddress": "192.168.100.2",
					"difficulty": 8,
					"tls": false,
					"tlsPfxFile": "/var/lib/certs/mycert.pfx",
					"varDiff": {
						"minDiff": 8,
						"maxDiff": 5120,
						"targetTime": 15,
						"retargetTime": 90,
						"variancePercent": 30
					}
				}
			},
			"daemons": [{
				"host": "127.0.0.1",
				"port": 8335,
				"user": "user",
				"password": "password",
				"zmqBlockNotifySocket": "tcp://127.0.0.1:15101",
				"portWs": 18545
			}],
			"paymentProcessing": {
				"enabled": true,
				"minimumPayment": 50,
				"payoutScheme": "PPLNS",
				"payoutSchemeConfig": {
					"factor": 2.0
				}
			}
		},
		
    ]
}
⚠️ **GitHub.com Fallback** ⚠️