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

feat: Allow env var override for game config #1367

Merged
merged 1 commit into from
Dec 30, 2023
Merged

Conversation

Xiphoseer
Copy link
Contributor

This allows users to override ini config with environment variables. This will cut down the amount of weird pre-processing required for a docker / kubernetes setup even more. For now, we just check the uppercase version of the config key agains the environment (windows is case-insensitive, linux isn't), so e.g. MYSQL_HOST can be used as an env var to specify where the DB is at.

@Xiphoseer Xiphoseer requested a review from EmosewaMC December 29, 2023 22:54
@aronwk-aaron aronwk-aaron changed the title Allow env var override for game config feat: Allow env var override for game config Dec 30, 2023
@Xiphoseer Xiphoseer merged commit dd9d94f into main Dec 30, 2023
3 checks passed
@Xiphoseer Xiphoseer deleted the feature/env-config branch December 30, 2023 13:59
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.

3 participants