Allow velocity forwarding secret to be passed as value (minecraft-proxy
)
#236
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This repo indicates support for running a Velocity proxy, but without my proposed changes, I cannot spin one up when
player-info-forwarding-mode
is set tomodern
(which I have heard is the only safe way to run Velocity).This is due to the file at the default
forwarding-secret-file
path being missing. Since there is no apparent way to provide one without manual customizations, I figured I'd PR the changes I made back to master.I'm coming into this project completely new, so forgive me if things are done differently than y'all usually do. Happy to make changes if needed. I used the config volume mount (just above my new one) as an example:
Hence why my
subPath
andpath
under thevolumes
section are hardcoded too (toforwarding.secret
). That said, I assume the implication of doing so is that no matter what the user provides asvelocityForwardingSecretFilePath
, the filename is going to remain the same, even though its location may change. I'm willing to adjust if needed.Additionally, I added the example provided in this PR over 3 years ago to the
values.yaml
file, which will hopefully save others time trying to figure out how to configure Velocity with this chart: #65 (comment)Thank you @ChipWolf for that info! 🙏
Testing
I ensured both the changes worked together: example Velocity config along with forwarding changes. I couldn't test them individually because, at least in my case and with my knowledge, both are needed to prevent the pod from crashing.
To test them together, I used the following
values.yaml
, which contains the exact examples added to the upstream values file:The proxy shows up as expected in-game:
Even though I didn't mess with anything related to it, I also briefly tested the chart in the default BungeeCord mode just in case, and the MOTD appropriately changed back to the BungeeCord one in my server list.
I did not test these changes on any other sever types but I can't imagine there's any impact.
Related Links
This is a list of helpful PRs and links that I referenced when making this PR (mostly here for my own future reference):