Skip to content

wip explaining config crate#120

Draft
BobrImperator wants to merge 2 commits intomainfrom
config-docs
Draft

wip explaining config crate#120
BobrImperator wants to merge 2 commits intomainfrom
config-docs

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

note this:
ENV APP_ENVIRONMENT=production

};

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

@marcoow marcoow force-pushed the main branch 10 times, most recently from 2ba0a72 to 436bdf9 Compare August 16, 2025 14:00
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