Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PAPER_CONFIG_REPO as alias for defaults repo variable #3076

Merged
merged 4 commits into from
Sep 23, 2024

Conversation

Alpha018
Copy link
Contributor

Hello, I propose setting the paper config files with an env var. To create an optimized config, I made a new repo in this link. Follow the doc of this other link and this discord server. If you want to add more files to the repo with optimization files, please feel free to make a PR.

@Alpha018
Copy link
Contributor Author

@itzg I added two new optional environment variables if you want to set the new config files or if you have a repo to place the files yourself; let me know if you think it is a good idea or if you prefer to make any changes. I am open to new comments.

Copy link
Owner

@itzg itzg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I appreciate what you're trying to enhance; however, it's not what I had intended for the config defaults feature. It was only meant to apply the official default files from PaperMC so that patching could be performed reliably, even with a blank system.

I would prefer you add the example with a patch file that applies the optimizations that you referenced.

@Alpha018
Copy link
Contributor Author

@itzg I can make that change. Also, can I add my repository in the example docs?? In any case, give me until the end of the day to change the PR and give me to this final day.

@itzg
Copy link
Owner

itzg commented Sep 21, 2024

No rush at all.

Yes, providing the links to your repo and supporting article make sense to include within the example directory/compose file.

scripts/start-deployPaper Outdated Show resolved Hide resolved
Co-authored-by: Geoff Bourne <itzgeoff@gmail.com>
@Alpha018
Copy link
Contributor Author

I tested this change with both variables and works. I tried to use the "patching existing files" option, but making some strong modifications is tough. I can't delete some variables and set some maps. 🤔 I don't know if this change convinced you to change the config files with another kind of properties.

@itzg
Copy link
Owner

itzg commented Sep 22, 2024

Thanks for confirming the change.

That's understandable since the patching can already be a little tedious. In that case, the example you have included with the aliased variable of PAPER_CONFIG_REPO seems good as it is.

Comment on lines 2 to 4
# Repository Proposal for Optimized Minecraft Configurations for Paper

This repository provides a set of optimized configuration files for Minecraft servers, focusing on improving performance and reducing lag. These configurations are based on community best practices and have been tested. You can also use your config file; you just need to replace the env var with another repo. It's important to follow the structure of a config file version like this [repo](https://github.com/Alpha018/paper-config-optimized).
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the context of the examples directory, this paragraph is confusing since it refers to "this repo" which is actually the repo you're maintaining.

Perhaps rather than copy over the README.md as is you could include a comment in the compose file that points users to your repo.

TYPE: "PAPER"
VIEW_DISTANCE: 10
MEMORY: 2G
PAPER_CONFIG_REPO: "https://raw.githubusercontent.com/Alpha018/paper-config-optimized/main" # <--- You can use this repo to get paper config-optimized files
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

...could just point users to your repo here

@Alpha018
Copy link
Contributor Author

@itzg I try to improve the information for better clarity. 😄

Copy link
Owner

@itzg itzg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect, thanks.

@itzg itzg changed the title feat(docker): add Minecraft server configuration and environment optimization Add PAPER_CONFIG_REPO as alias for defaults repo variable Sep 23, 2024
@itzg itzg merged commit df8f8f1 into itzg:master Sep 23, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants