Skip to content

Multi Proxy Sockets

Ben edited this page Mar 3, 2024 · 3 revisions

Still relatively new feature, but is actively working

Things required:

  • Primary server/main proxy needs to be set as primary server (by enabling option). This server will handle adding totals and such and forward the vote to the other proxies.
  • Each sub proxy needs a host/port and needs to be set in the primary proxy under MutliProxyServers.
  • Each sub proxy will be setup with pluginmessaing (recommended) or sockets.
  • You also need to have the same secretkey.key file across all proxies (copy/paste from one server after it generates)

Check connection status with /votingpluginbungee multiproxystatus

##########################################
# Multi-proxy setup
# This is still a WIP, use with caution
# Primary server  needs votifier and config option enabled
# Set socket host on each proxy and primary server set sub proxies
# All servers should be on pluginmessaging or sockets setup
##########################################

# Support for multiple proxies
MultiProxySupport: false

# Enable on primary proxy server with votifier
PrimaryServer: false

# If enabled, player will only get 1 reward on a server on the network
# Must be enabled on all proxies for this to work
# Must also disable sendtoallservers
MultiProxyOneGlobalReward: false

# Multi-proxy available methods:
#  SOCKET
#  REDIS
MultiProxyMethod: SOCKET

##########################################
# SOCKET settings for mutli-proxy
##########################################

# Set this for each proxy
MultiProxySocketHost:
  Host: 0.0.0.0
  Port: 1234

# Set other sub proxies here
# On non primary proxy only set primary proxy
MultiProxyServers:
  secondproxy:
    Host: 0.0.0.0
    Port: 1235
Clone this wiki locally