Skip to content

Commit

Permalink
update cfg template: add sserver.proxy_protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
SwimmingTiger committed Mar 22, 2020
1 parent e71a11b commit 42d9feb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
6 changes: 5 additions & 1 deletion install/cfg-generator/bitcoin/sserver.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,11 @@

# Send ShareBitcoinBytesV1 to share_topic to keep compatibility with legacy statshttpd/sharelogger.
use_share_v1 = <?=optionalBool('sserver_use_share_v1', false)?>;


# Accepting the PROXY Protocol to get the original IP of the miner from a proxy.
# <https://docs.nginx.com/nginx/admin-guide/load-balancer/using-proxy-protocol/>
proxy_protocol = <?=optionalBool('sserver_proxy_protocol', false)?>;

<?php
$chains = commaSplitTrim('chains');
$multi_chains = !empty($chains);
Expand Down
4 changes: 4 additions & 0 deletions src/bitcoin/cfg/sserver(multi-chains).cfg
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ sserver = {
# Sserver will query zookeeper to find the chain that a user want mining.
multi_chains = true;

# Accepting the PROXY Protocol to get the original IP of the miner from a proxy.
# <https://docs.nginx.com/nginx/admin-guide/load-balancer/using-proxy-protocol/>
proxy_protocol = false;

########################## dev options #########################

# if enable simulator, all share will be accepted. for testing
Expand Down
4 changes: 4 additions & 0 deletions src/bitcoin/cfg/sserver.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ sserver = {
rsk_solved_share_topic = "RskSolvedShare";
common_events_topic = "BtcCommonEvents";

# Accepting the PROXY Protocol to get the original IP of the miner from a proxy.
# <https://docs.nginx.com/nginx/admin-guide/load-balancer/using-proxy-protocol/>
proxy_protocol = false;

########################## dev options #########################

# if enable simulator, all share will be accepted. for testing
Expand Down

0 comments on commit 42d9feb

Please sign in to comment.