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

wip explaining config crate #120

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

wip explaining config crate #120

wants to merge 2 commits into from

Conversation

BobrImperator
Copy link
Collaborator

@BobrImperator BobrImperator commented Oct 23, 2024

Changing server config with a .toml app.toml or environments/[env].toml file:

# config/app.toml
# add default config settings here…

# APP_OTHER_SETTING=
other_setting = "something"

[server]
# APP_SERVER__MATCH_LIFESPAN=
match_lifespan = 130
match_approve_timeout = 20
matchmaking_enabled = false
keep_alive_interval = 15

@@ -134,12 +134,12 @@ where
};

let config: T = Figment::new()
.merge(Serialized::defaults(ServerConfig::default()).key("server"))
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

add test for this

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.

1 participant