Added multi server support
This commit is contained in:
1 parent
640d4f45f2
commit
4414dce4e4
32 files changed
+543
-207
No files matched your search
@@ -1,6 +1,7 @@
|
||||
# DirtSimpleP2P Bungee/Waterfall frontend config.
|
||||
# Put this same jar in the Bungee plugins folder.
|
||||
# Bungee should point its backend server entry at route.minecraft.frontendBindHost:route.minecraft.frontendBindPort.
|
||||
# Add more routes when this proxy should reach multiple backend servers.
|
||||
|
||||
role=frontend
|
||||
node.name=bungee-frontend
|
||||
@@ -31,3 +32,13 @@ tunnel.tls.requireClientAuth=false
|
||||
routes=minecraft
|
||||
route.minecraft.frontendBindHost=127.0.0.1
|
||||
route.minecraft.frontendBindPort=25566
|
||||
route.minecraft.backendNode=paper-backend
|
||||
|
||||
# Multi-backend example:
|
||||
# routes=minecraft,lobby
|
||||
# route.minecraft.frontendBindHost=127.0.0.1
|
||||
# route.minecraft.frontendBindPort=25566
|
||||
# route.minecraft.backendNode=survival-backend
|
||||
# route.lobby.frontendBindHost=127.0.0.1
|
||||
# route.lobby.frontendBindPort=25567
|
||||
# route.lobby.backendNode=lobby-backend
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -5,8 +5,20 @@
|
||||
role=backend
|
||||
node.name=paper-backend
|
||||
|
||||
tunnel.connectHost=YOUR_BUNGEE_OR_VPS_IP
|
||||
tunnel.connectPort=24445
|
||||
frontends=proxy1
|
||||
frontend.proxy1.connectHost=YOUR_BUNGEE_OR_VPS_IP
|
||||
frontend.proxy1.connectPort=24445
|
||||
frontend.proxy1.tls.pinnedCertificateSha256=
|
||||
|
||||
# Multi-proxy example:
|
||||
# frontends=proxy1,proxy2
|
||||
# frontend.proxy1.connectHost=proxy1.example.com
|
||||
# frontend.proxy1.connectPort=24445
|
||||
# frontend.proxy1.tls.pinnedCertificateSha256=
|
||||
# frontend.proxy2.connectHost=proxy2.example.com
|
||||
# frontend.proxy2.connectPort=24445
|
||||
# frontend.proxy2.tls.pinnedCertificateSha256=
|
||||
|
||||
# Replaced automatically on first start. Paste the same value from the Bungee config here.
|
||||
tunnel.authToken=AUTO_GENERATED_ON_FIRST_START
|
||||
|
||||
@@ -24,7 +36,6 @@ tunnel.reconnectMaxMillis=10000
|
||||
tunnel.tls.enabled=false
|
||||
tunnel.tls.allowInsecure=true
|
||||
tunnel.tls.trustOnFirstUse=true
|
||||
tunnel.tls.pinnedCertificateSha256=
|
||||
|
||||
routes=minecraft
|
||||
route.minecraft.backendTargetHost=127.0.0.1
|
||||
|
||||
Reference in new issue
Block a user