Skip to content

Commit

Permalink
added rusty connector config files
Browse files Browse the repository at this point in the history
  • Loading branch information
Buh13246 committed Nov 5, 2023
1 parent aea6d85 commit 26216d7
Show file tree
Hide file tree
Showing 8 changed files with 353 additions and 3 deletions.
4 changes: 3 additions & 1 deletion blubb/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ RUN mv velocity-*.jar /opt/velocity/velocity.jar
RUN wget https://github.com/Aelysium-Group/rusty-connector/releases/download/v0.7.0/rusty-connector-0.7.0.jar
RUN mkdir /data/plugins
RUN mv rusty-connector-*.jar /data/plugins/rusty-connector.jar
COPY velocity.toml /data
COPY velocity.toml /data
COPY velocity_config rustyconnector-velocity
RUN ln -s /mnt/secrets/private.key /data/plugins/rustyconnector-velocity/private.key
2 changes: 1 addition & 1 deletion blubb/velocity.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ player-info-forwarding-mode = "MODERN"

# If you are using modern or BungeeGuard IP forwarding, configure a file that contains a unique secret here.
# The file is expected to be UTF-8 encoded and not empty.
forwarding-secret-file = "/mnt/forwarding.secret"
forwarding-secret-file = "/mnt/secrets/forwarding.secret"

# Announce whether or not your server supports Forge. If you run a modded server, we
# suggest turning this on.
Expand Down
12 changes: 11 additions & 1 deletion velocity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,17 @@ spec:
secretKeyRef:
name: velocity-secrets
key: forwarding-secret
command: ['sh', '-c', "ls -la /mnt; echo $FORWARDING_SECRET >> /mnt/forwarding.secret"]
- name: PRIVATE_KEY
valueFrom:
secretKeyRef:
name: velocity-secrets
key: private-key
command: [
'sh', '-c',
"echo files in /mnt; ls -la /mnt",
"echo $FORWARDING_SECRET >> /mnt/secrets/forwarding.secret",
"echo $PRIVATE_KEY >> /mnt/secrets/private.key"
]
volumeMounts:
- name: mnt
mountPath: /mnt
Expand Down
132 changes: 132 additions & 0 deletions velocity_config/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
###########################################################################################################
#|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||#
###########################################################################################################
# #
# /███████ /██ #
# | ██__ ██ | ██ #
# | ██ \ ██ /██ /██ /███████ /██████ /██ /██ #
# | ███████/ | ██ | ██ /██_____/ |_ ██_/ | ██ | ██ #
# | ██__ ██ | ██ | ██ | ██████ | ██ | ██ | ██ #
# | ██ \ ██ | ██ | ██ \____ ██ | ██ /██ | ██ | ██ #
# | ██ | ██ | ██████/ /███████/ | ████/ | ███████ #
# |__/ |__/ \______/ |_______/ \___/ \____ ██ #
# /██ | ██ #
# | ██████/ #
# /██████ \______/ /██ #
# /██__ ██ | ██ #
# | ██ \__/ /██████ /███████ /███████ /██████ /███████ /██████ /██████ /██████ #
# | ██ /██__ ██ | ██__ ██ | ██__ ██ /██__ ██ /██_____/ |_ ██_/ /██__ ██ /██__ ██ #
# | ██ | ██ \ ██ | ██ \ ██ | ██ \ ██ | ████████ | ██ | ██ | ██ \ ██ | ██ \__/ #
# | ██ ██ | ██ | ██ | ██ | ██ | ██ | ██ | ██_____/ | ██ | ██ /██ | ██ | ██ | ██ #
# | ██████/ | ██████/ | ██ | ██ | ██ | ██ | ███████ | ███████ | ████/ | ██████/ | ██ #
# \______/ \______/ |__/ |__/ |__/ |__/ \_______/ \_______/ \___/ \______/ |__/ #
# #
# #
# Welcome to RustyConnector! #
# https://github.com/Aelysium-Group/rusty-connector #
# #
# ------------------------------------------------- #
# #
# | RustyConnector is your go-to load-balancer and | Built for usage on high-traffic networks; #
# | player manager for Minecraft networks! | RustyConnector is meant to be scalable and easy #
# | to maintain! #
# #
# | If you ever need assistance setting up your #
# | plugin come join us in our discord server: #
# | https://join.aelysium.group/ #
# #
# ------------------------------------------------- #
# #
# Produced by: Aelysium | Nathan M. #
# #
# ------------------------------------------------- #
# #
###########################################################################################################
#|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||#
###########################################################################################################
#
# If you need help updating your configs from an older version;
# take a look at our config migration docs:
#
# https://github.com/Aelysium-Group/rusty-connector/wiki/Config-Migration
#
version: 5

############################################################
#||||||||||||||||||||||||||||||||||||||||||||||||||||||||||#
# Whitelist #
# #
# --------------------------- #
# | RustyConnector attempts to be as flexible as possible #
# | when configuring whitelists! #
# | To setup a whitelist, you'll need to navigate to the #
# | "whitelists" folder and follow the directions in the #
# | provided whitelist-template. #
# #
# | More often than not, you will have multiple whitelist #
# | configurations that you may want to switch between #
# | during various points in your network's lifetime. #
# | This system allows you to set up as many pre-defined #
# | whitelists as you'd like, and enable or switch between #
# | then whenever you want! #
# --------------------------- #
# #
#||||||||||||||||||||||||||||||||||||||||||||||||||||||||||#
############################################################
whitelist:
#
# If you set this to be on. You will be turning on a whitelist which will **effect your entire proxy**!
# If you only want to effect certain families or individual servers. Look into the appropriate configuration locations!
#
enabled: false

#
# The name of the whitelist configuration file in your "whitelists" folder.
# You can include the ".yml" at the end of the name below if you'd like. It doesn't matter either way.
#
name: "whitelist-template"

############################################################
#||||||||||||||||||||||||||||||||||||||||||||||||||||||||||#
# Services #
# #
# --------------------------- #
# | Services are small, in-built applications that #
# | carry out specific duties within RustyConnector #
# --------------------------- #
# #
#||||||||||||||||||||||||||||||||||||||||||||||||||||||||||#
############################################################
services:
#
# Manages the lifecycles of servers.
#
# Also manages the lifecycle of a player's home server if you are using Static Families.
#
server-lifecycle:
#
# Amount of time, in seconds, that a server can go without pinging the proxy.
# If a server doesn't ping the proxy in this time, it will be declared stale
# and be unregistered from the proxy.
#
server-timeout: 15

#
# Amount of time, in seconds, that a server should wait to ping the proxy.
# This setting cannot be higher than "server-timeout".
#
server-ping-interval: 10

#
# Manages the load balancing of the proxy's families.
#
load-balancing:
enabled: true
#
# Time, in seconds, between when the families sort their servers. This interval will cause your proxy to sort ALL of the servers registered to it!
# The higher this value the higher accuracy your load balancing will operate at.
# If you have larger sets of servers on a family, setting the interval to be larger can help save resources.
#
# If you disable this heart, you are effectively setting load balancing for your entire network to be ROUND_ROBIN
#
interval: 20
38 changes: 38 additions & 0 deletions velocity_config/connectors.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#####################################################################################################
#|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||#
#####################################################################################################
# #
# ______ ______ __ __ __ __ ______ ______ ______ ______ ______ ______ #
# /\ ___\ /\ __ \ /\ "-.\ \ /\ "-.\ \ /\ ___\ /\ ___\ /\__ _\/\ __ \ /\ == \ /\ ___\ #
# \ \ \____\ \ \/\ \\ \ \-. \\ \ \-. \\ \ __\ \ \ \____\/_/\ \/\ \ \/\ \\ \ __< \ \___ \ #
# \ \_____\\ \_____\\ \_\\"\_\\ \_\\"\_\\ \_____\\ \_____\ \ \_\ \ \_____\\ \_\ \_\\/\_____\ #
# \/_____/ \/_____/ \/_/ \/_/ \/_/ \/_/ \/_____/ \/_____/ \/_/ \/_____/ \/_/ /_/ \/_____/ #
# #
# #
# --------------------------- #
# #
# | Connectors allow you to define multiple different messaging and storage connections which #
# | can then be referenced in various points in your configs. #
# #
# | To update any connection settings you don't have to search through your configs, instead #
# | just update them here! #
# #
# --------------------------- #
# #
#####################################################################################################
#|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||#
#####################################################################################################

redis:
host: "0.0.0.0"
port: 3306
user: "default"
password: "password"
data-channel: "rustyConnector-sync"

mariadb:
host: "0.0.0.0"
port: 3306
user: "default"
password: "password"
database: "RustyConnector"
97 changes: 97 additions & 0 deletions velocity_config/data_transit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
###########################################################################################################
#|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||#
###########################################################################################################
# #
# _____ ______ ______ ______ #
# /\ __-. /\ __ \ /\__ _\ /\ __ \ #
# \ \ \/\ \ \ \ __ \ \/_/\ \/ \ \ __ \ #
# \ \____- \ \_\ \_\ \ \_\ \ \_\ \_\ #
# \/____/ \/_/\/_/ \/_/ \/_/\/_/ #
# ______ ______ ______ __ __ ______ __ ______ #
# /\__ _\ /\ == \ /\ __ \ /\ "-.\ \ /\ ___\ /\ \ /\__ _\ #
# \/_/\ \/ \ \ __< \ \ __ \ \ \ \-. \ \ \___ \ \ \ \ \/_/\ \/ #
# \ \_\ \ \_\ \_\ \ \_\ \_\ \ \_\\"\_\ \/\_____\ \ \_\ \ \_\ #
# \/_/ \/_/ /_/ \/_/\/_/ \/_/ \/_/ \/_____/ \/_/ \/_/ #
# #
# #
# Welcome to Data Transit! #
# #
# ------------------------------------------------- #
# #
# | Manage which messages you want to allow to speak to RustyConnector! #
# | Setup your message cache to control what data packets will be cached #
# | and how many to cache before old packets get thrown away! #
# #
# ------------------------------------------------- #
# #
###########################################################################################################
#|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||#
###########################################################################################################

#
# Should Data Transit operate via an AES SecureTransit protocol?
#
secure-transit: true

#
# The max length that packets are allowed to be.
# If a packet is over this value it will be thrown away.
# The size below should work for just about everything that is sent by RustyConnector.
# If you are defining larger addresses or names on your paper servers, you might want to increase this.
#
max-packet-length: 512


#
# The cache allows you to view messages after they've been received.
# This is helpful for debugging issues and seeing what's happening under the hood.
#
cache:
#
# The number of packets that will be saved into memory at any time.
# As new packets are received, old packets will get pushed out of the cache.
#
# You can view cached messages using the `/rc message` command.
#
size: 100

#
# The packet types that should be ignored.
# If a packet is of a type that is contained below, it will not be cached.
#
ignored-types: []

#
# The packet statuses to ignore.
# If a packet matches a status listed below, it will not be cached.
#
ignored-statuses: []


#
# By listing IP addresses here. The plugin will NEVER accept packets if they don't contain one of these IP Addresses!
# If you know exactly which IP Addresses you want to allow packets from. You can whitelist them here!
#
# VERY IMPORTANT: If you are getting packets over your redis network that you don't recognize:
# YOU SHOULD RESET YOUR REDIS CREDENTIALS IMMEDIATELY!
# This feature only exists to give you a bit more flexibility in how strict your plugin can be.
#
whitelist:
enabled: false
addresses:
- "127.0.0.1"

#
# By listing IP addresses here. The plugin will NEVER accept packets containing one of these IP Addresses!
#
# NOTE: The denylist has precedence over the whitelist. If an IP is defined in both the whitelist AND the denylist
# it will not be accepted.
#
# VERY IMPORTANT: If you are getting packets over your redis network that you don't recognize:
# YOU SHOULD RESET YOUR REDIS CREDENTIALS IMMEDIATELY!
# This feature only exists to give you a bit more flexibility in how strict your plugin can be.
#
denylist:
enabled: false
addresses:
- "127.0.0.1"
13 changes: 13 additions & 0 deletions velocity_config/language.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#
# The language to use for RustyConnector.
# Language translations are provided by volunteering community members.
# In order to install a different language you'll need to download the appropriate lang file.
#
# Language codes are not case-sensitive, also you can use a dash "-" or underscore "_".
# A general good practice is to just copy the name, exactly, of the lang package you wanna load.
#
# For a list of supported languages, please reference:
#
# LINK HERE
#
language: "en_us"
Loading

0 comments on commit 26216d7

Please sign in to comment.